mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Moving vendored definitions to documentation
This commit is contained in:
@@ -23,3 +23,6 @@
|
|||||||
- (^|/)INSTALL(\.|$)
|
- (^|/)INSTALL(\.|$)
|
||||||
- (^|/)LICEN[CS]E(\.|$)
|
- (^|/)LICEN[CS]E(\.|$)
|
||||||
- (^|/)README(\.|$)
|
- (^|/)README(\.|$)
|
||||||
|
|
||||||
|
# Samples folders
|
||||||
|
- ^[Ss]amples/
|
||||||
|
|||||||
@@ -179,6 +179,10 @@
|
|||||||
# Fabric
|
# Fabric
|
||||||
- Fabric.framework/
|
- Fabric.framework/
|
||||||
|
|
||||||
|
# git config files
|
||||||
|
- gitattributes$
|
||||||
|
- gitignore$
|
||||||
|
- gitmodules$
|
||||||
|
|
||||||
## Groovy ##
|
## Groovy ##
|
||||||
|
|
||||||
@@ -224,19 +228,6 @@
|
|||||||
# Html5shiv
|
# Html5shiv
|
||||||
- (^|/)html5shiv\.js$
|
- (^|/)html5shiv\.js$
|
||||||
|
|
||||||
# Samples folders
|
|
||||||
- ^[Ss]amples/
|
|
||||||
|
|
||||||
# LICENSE, README, git config files
|
|
||||||
- ^COPYING$
|
|
||||||
- LICENSE$
|
|
||||||
- License$
|
|
||||||
- gitattributes$
|
|
||||||
- gitignore$
|
|
||||||
- gitmodules$
|
|
||||||
- ^README$
|
|
||||||
- ^readme$
|
|
||||||
|
|
||||||
# Test fixtures
|
# Test fixtures
|
||||||
- ^[Tt]ests?/fixtures/
|
- ^[Tt]ests?/fixtures/
|
||||||
|
|
||||||
|
|||||||
@@ -308,6 +308,12 @@ class TestBlob < Minitest::Test
|
|||||||
# Erlang
|
# Erlang
|
||||||
assert sample_blob("rebar").vendored?
|
assert sample_blob("rebar").vendored?
|
||||||
|
|
||||||
|
# git config files
|
||||||
|
|
||||||
|
assert_predicate fixture_blob("some/path/.gitattributes"), :vendored?
|
||||||
|
assert_predicate fixture_blob(".gitignore"), :vendored?
|
||||||
|
assert_predicate fixture_blob("special/path/.gitmodules"), :vendored?
|
||||||
|
|
||||||
# Minified JavaScript and CSS
|
# Minified JavaScript and CSS
|
||||||
assert sample_blob("foo.min.js").vendored?
|
assert sample_blob("foo.min.js").vendored?
|
||||||
assert sample_blob("foo.min.css").vendored?
|
assert sample_blob("foo.min.css").vendored?
|
||||||
@@ -326,9 +332,6 @@ class TestBlob < Minitest::Test
|
|||||||
assert sample_blob("public/javascripts/controls.js").vendored?
|
assert sample_blob("public/javascripts/controls.js").vendored?
|
||||||
assert sample_blob("public/javascripts/dragdrop.js").vendored?
|
assert sample_blob("public/javascripts/dragdrop.js").vendored?
|
||||||
|
|
||||||
# Samples
|
|
||||||
assert sample_blob("Samples/Ruby/foo.rb").vendored?
|
|
||||||
|
|
||||||
# jQuery
|
# jQuery
|
||||||
assert sample_blob("jquery.js").vendored?
|
assert sample_blob("jquery.js").vendored?
|
||||||
assert sample_blob("public/javascripts/jquery.js").vendored?
|
assert sample_blob("public/javascripts/jquery.js").vendored?
|
||||||
@@ -552,6 +555,11 @@ class TestBlob < Minitest::Test
|
|||||||
assert_predicate fixture_blob("foo/INSTALL"), :documentation?
|
assert_predicate fixture_blob("foo/INSTALL"), :documentation?
|
||||||
|
|
||||||
refute_predicate fixture_blob("foo.md"), :documentation?
|
refute_predicate fixture_blob("foo.md"), :documentation?
|
||||||
|
|
||||||
|
# Samples
|
||||||
|
assert sample_blob("Samples/Ruby/foo.rb").documentation?
|
||||||
|
|
||||||
|
assert_predicate fixture_blob("INSTALL.txt"), :documentation?
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_language
|
def test_language
|
||||||
|
|||||||
Reference in New Issue
Block a user