mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add Go dependencies to generated.rb and test_blob.rb
This commit is contained in:
@@ -63,6 +63,7 @@ module Linguist
|
|||||||
generated_jni_header? ||
|
generated_jni_header? ||
|
||||||
composer_lock? ||
|
composer_lock? ||
|
||||||
node_modules? ||
|
node_modules? ||
|
||||||
|
godeps? ||
|
||||||
vcr_cassette? ||
|
vcr_cassette? ||
|
||||||
generated_by_zephir?
|
generated_by_zephir?
|
||||||
end
|
end
|
||||||
@@ -231,6 +232,14 @@ module Linguist
|
|||||||
!!name.match(/node_modules\//)
|
!!name.match(/node_modules\//)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Internal: Is the blob part of Godeps/,
|
||||||
|
# which are not meant for humans in pull requests.
|
||||||
|
#
|
||||||
|
# Returns true or false.
|
||||||
|
def godeps?
|
||||||
|
!!name.match(/Godeps\//)
|
||||||
|
end
|
||||||
|
|
||||||
# Internal: Is the blob a generated php composer lock file?
|
# Internal: Is the blob a generated php composer lock file?
|
||||||
#
|
#
|
||||||
# Returns true or false.
|
# Returns true or false.
|
||||||
|
|||||||
@@ -262,6 +262,10 @@ class TestBlob < Test::Unit::TestCase
|
|||||||
|
|
||||||
|
|
||||||
assert Linguist::Generated.generated?("node_modules/grunt/lib/grunt.js", nil)
|
assert Linguist::Generated.generated?("node_modules/grunt/lib/grunt.js", nil)
|
||||||
|
|
||||||
|
# Godep saved dependencies
|
||||||
|
assert blob("Godeps/Godeps.json").generated?
|
||||||
|
assert blob("Godeps/_workspace/src/github.com/kr/s3/sign.go").generated?
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_vendored
|
def test_vendored
|
||||||
|
|||||||
Reference in New Issue
Block a user