Add Go dependencies to generated.rb and test_blob.rb

This commit is contained in:
Keith Rarick
2014-09-22 00:54:54 -07:00
parent 19b8721225
commit 86aa4c3f3d
2 changed files with 13 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ module Linguist
generated_jni_header? ||
composer_lock? ||
node_modules? ||
godeps? ||
vcr_cassette? ||
generated_by_zephir?
end
@@ -231,6 +232,14 @@ module Linguist
!!name.match(/node_modules\//)
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?
#
# Returns true or false.