From acc1a56da459683cc9c3c26429cf3dd607075238 Mon Sep 17 00:00:00 2001 From: Chris Kuehl Date: Mon, 10 Jun 2013 01:02:25 -0400 Subject: [PATCH 1/2] Add Cordova's/PhoneGap's JS device library as vendor exclusion. --- lib/linguist/vendor.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/linguist/vendor.yml b/lib/linguist/vendor.yml index 7adaeefb..f5dcabda 100644 --- a/lib/linguist/vendor.yml +++ b/lib/linguist/vendor.yml @@ -111,3 +111,7 @@ # Test fixtures - ^[Tt]est/fixtures/ + +# PhoneGap/Cordova +- (^|/)cordova([^.]*)(\.min)?\.js$ +- (^|/)cordova\-\d\.\d(\.\d)?(\.min)?\.js$ From 1af71c8945e765d5225ec1419f5441522b92b569 Mon Sep 17 00:00:00 2001 From: Chris Kuehl Date: Mon, 10 Jun 2013 01:09:23 -0400 Subject: [PATCH 2/2] Add tests for PhoneGap/Cordova vendor exceptions. --- test/test_blob.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_blob.rb b/test/test_blob.rb index 56d9e6f2..8cfaefb6 100644 --- a/test/test_blob.rb +++ b/test/test_blob.rb @@ -285,6 +285,12 @@ class TestBlob < Test::Unit::TestCase # Test fixtures assert blob("test/fixtures/random.rkt").vendored? assert blob("Test/fixtures/random.rkt").vendored? + + # Cordova/PhoneGap + assert blob("cordova.js").vendored? + assert blob("cordova.min.js").vendored? + assert blob("cordova-2.1.0.js").vendored? + assert blob("cordova-2.1.0.min.js").vendored? end def test_indexable