From 4819fb12a384ae82fdfeb43b56bf7cc6eeae33fd Mon Sep 17 00:00:00 2001 From: neersighted Date: Sun, 22 Jun 2014 17:18:10 -0700 Subject: [PATCH 1/2] Also ignore extern(al) ...because some of us don't like 'vendor' --- lib/linguist/vendor.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/linguist/vendor.yml b/lib/linguist/vendor.yml index 4d8481e5..4b67fdda 100644 --- a/lib/linguist/vendor.yml +++ b/lib/linguist/vendor.yml @@ -43,6 +43,7 @@ # Vendored dependencies - thirdparty/ - vendors?/ +- extern(al)?/ # Debian packaging - ^debian/ From b90d940aefb221a2d16fc55a69c734b78082e115 Mon Sep 17 00:00:00 2001 From: neersighted Date: Mon, 23 Jun 2014 14:50:31 -0700 Subject: [PATCH 2/2] Add tests for extern(al) being vendored --- test/test_blob.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_blob.rb b/test/test_blob.rb index 4f08db11..eb65d1d8 100644 --- a/test/test_blob.rb +++ b/test/test_blob.rb @@ -277,6 +277,10 @@ class TestBlob < Test::Unit::TestCase # 'thirdparty' directory assert blob("thirdparty/lib/main.c").vendored? + + # 'extern(al)' directory + assert blob("extern/util/__init__.py").vendored? + assert blob("external/jquery.min.js").vendored? # C deps assert blob("deps/http_parser/http_parser.c").vendored?