Comparing changes
Open a pull request
- 6 commits
- 4 files changed
- 0 comments
- 2 contributors
This Prolog file was misclassified as Perl. I assume linguist was confused because the file has many comments. Nevertheless, there are plenty of Prolog-distinguishing tokens such as `:-`, `module`, `%%`, capitalized variables names, `foo/2`, etc.
Add a misclassified Prolog file
- +23 −9 lib/linguist/samples.json
- +3 −0 lib/linguist/vendor.yml
- +27 −0 samples/Ruby/jenkinsci.pluginspec
- +4 −0 test/test_blob.rb
| @@ -229,6 +229,7 @@ | ||
| ".r" | ||
| ], | ||
| "Ruby": [ | ||
| ".pluginspec", | ||
| ".rabl", | ||
| ".rake", | ||
| ".rb", | ||
| @@ -364,8 +365,8 @@ | ||
| ".gemrc" | ||
| ] | ||
| }, | ||
| "tokens_total": 329380, | ||
| "languages_total": 380, | ||
| "tokens_total": 329398, | ||
| "languages_total": 381, | ||
| "tokens": { | ||
| "ABAP": { | ||
| "*/**": 1, | ||
| @@ -30313,16 +30314,16 @@ | ||
| "]": 56, | ||
| ".each": 4, | ||
| "{": 68, | ||
| "|": 89, | ||
| "plugin": 2, | ||
| "|": 91, | ||
| "plugin": 3, | ||
| "(": 244, | ||
| ")": 256, | ||
| "}": 68, | ||
| "task": 2, | ||
| "default": 2, | ||
| "do": 34, | ||
| "do": 35, | ||
| "puts": 12, | ||
| "end": 235, | ||
| "end": 236, | ||
| "module": 8, | ||
| "Foo": 1, | ||
| "require": 58, | ||
| @@ -30941,6 +30942,19 @@ | ||
| "err.to_s": 1, | ||
| "DEFAULTS.deep_merge": 1, | ||
| ".deep_merge": 1, | ||
| "Jenkins": 1, | ||
| "Plugin": 1, | ||
| "Specification.new": 1, | ||
| "plugin.name": 1, | ||
| "plugin.display_name": 1, | ||
| "plugin.version": 1, | ||
| "plugin.description": 1, | ||
| "plugin.url": 1, | ||
| "plugin.developed_by": 1, | ||
| "plugin.uses_repository": 1, | ||
| "github": 1, | ||
| "plugin.depends_on": 1, | ||
| "#plugin.depends_on": 1, | ||
| "SHEBANG#!macruby": 1, | ||
| "object": 2, | ||
| "@user": 1, | ||
| @@ -35171,7 +35185,7 @@ | ||
| "Racket": 269, | ||
| "Ragel in Ruby Host": 593, | ||
| "Rebol": 11, | ||
| "Ruby": 3836, | ||
| "Ruby": 3854, | ||
| "Rust": 3566, | ||
| "Sass": 28, | ||
| "Scala": 280, | ||
| @@ -35267,7 +35281,7 @@ | ||
| "Racket": 2, | ||
| "Ragel in Ruby Host": 3, | ||
| "Rebol": 1, | ||
| "Ruby": 15, | ||
| "Ruby": 16, | ||
| "Rust": 1, | ||
| "Sass": 1, | ||
| "Scala": 2, | ||
| @@ -35293,5 +35307,5 @@ | ||
| "Xtend": 2, | ||
| "YAML": 1 | ||
| }, | ||
| "md5": "ca4d9b4279558fef161b159ab0c55802" | ||
| "md5": "d58aa4bc89f39bef8243e3990c0cff23" | ||
| } | ||
| @@ -108,3 +108,6 @@ | ||
|
|
||
| # Samples folders | ||
| - ^[Ss]amples/ | ||
|
|
||
| # Test fixtures | ||
| - ^[Tt]est/fixtures/ | ||
| @@ -0,0 +1,27 @@ | ||
| Jenkins::Plugin::Specification.new do |plugin| | ||
| plugin.name = "foo" | ||
| plugin.display_name = "Foo Plugin" | ||
| plugin.version = '0.0.1' | ||
| plugin.description = 'TODO: enter description here' | ||
|
|
||
| # You should create a wiki-page for your plugin when you publish it, see | ||
| # https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins#HostingPlugins-AddingaWikipage | ||
| # This line makes sure it's listed in your POM. | ||
| plugin.url = 'https://wiki.jenkins-ci.org/display/JENKINS/Foo+Plugin' | ||
|
|
||
| # The first argument is your user name for jenkins-ci.org. | ||
| plugin.developed_by "david.calavera", "David Calavera <david.calavera@gmail.com>" | ||
|
|
||
| # This specifies where your code is hosted. | ||
| # Alternatives include: | ||
| # :github => 'myuser/foo-plugin' (without myuser it defaults to jenkinsci) | ||
| # :git => 'git://repo.or.cz/foo-plugin.git' | ||
| # :svn => 'https://svn.jenkins-ci.org/trunk/hudson/plugins/foo-plugin' | ||
| plugin.uses_repository :github => "foo-plugin" | ||
|
|
||
| # This is a required dependency for every ruby plugin. | ||
| plugin.depends_on 'ruby-runtime', '0.10' | ||
|
|
||
| # This is a sample dependency for a Jenkins plugin, 'git'. | ||
| #plugin.depends_on 'git', '1.1.11' | ||
| end |
| @@ -273,6 +273,10 @@ def test_vendored | ||
|
|
||
| # NuGet Packages | ||
| assert blob("packages/Modernizr.2.0.6/Content/Scripts/modernizr-2.0.6-development-only.js").vendored? | ||
|
|
||
| # Test fixtures | ||
| assert blob("test/fixtures/random.rkt").vendored? | ||
| assert blob("Test/fixtures/random.rkt").vendored? | ||
| end | ||
|
|
||
| def test_indexable | ||