From 8845b266de4b4547c549ce624e4320f34f277378 Mon Sep 17 00:00:00 2001 From: Drew Crawford Date: Wed, 17 Jun 2015 21:25:54 -0500 Subject: [PATCH] Adding some more vendered expressions * `Vendor/`, the capitalized path * Crashlytics, a common iOS framework * Fabric, a common iOS framework --- lib/linguist/vendor.yml | 8 ++++++++ test/test_blob.rb | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/lib/linguist/vendor.yml b/lib/linguist/vendor.yml index 18f3ad0b..e9af74e6 100644 --- a/lib/linguist/vendor.yml +++ b/lib/linguist/vendor.yml @@ -70,6 +70,7 @@ - 3rd[-_]?party/ - vendors?/ - extern(al)?/ +- (^|/)[Vv]+endor/ # Debian packaging - ^debian/ @@ -172,6 +173,13 @@ # Sparkle - (^|/)Sparkle/ +# Crashlytics +- Crashlytics.framework/ + +# Fabric +- Fabric.framework/ + + ## Groovy ## # Gradle diff --git a/test/test_blob.rb b/test/test_blob.rb index 3d35e263..fcafc8f9 100644 --- a/test/test_blob.rb +++ b/test/test_blob.rb @@ -279,6 +279,9 @@ class TestBlob < Minitest::Test # Rails vendor/ assert sample_blob("vendor/plugins/will_paginate/lib/will_paginate.rb").vendored? + # Vendor/ + assert sample_blob("Vendor/my_great_file.h").vendored? + # 'thirdparty' directory assert sample_blob("thirdparty/lib/main.c").vendored? @@ -480,6 +483,12 @@ class TestBlob < Minitest::Test # Vagrant assert sample_blob("puphpet/file.pp").vendored? + + # Fabric.io + assert sample_blob("Fabric.framework/Fabric.h").vendored? + + # Crashlytics + assert sample_blob("Crashlytics.framework/Crashlytics.h").vendored? end def test_documentation