From 8d2dd55c9469e912b046a27a9bd4414285a1bf07 Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Fri, 13 Feb 2015 14:30:44 -0500 Subject: [PATCH] Categorize INSTALL files as documentation too --- lib/linguist/documentation.yml | 1 + test/test_blob.rb | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/lib/linguist/documentation.yml b/lib/linguist/documentation.yml index 57fc6151..b884cd35 100644 --- a/lib/linguist/documentation.yml +++ b/lib/linguist/documentation.yml @@ -14,5 +14,6 @@ - (^|/)CONTRIBUTING(\.|$) - (^|/)COPYING(\.|$) +- (^|/)INSTALL(\.|$) - (^|/)LICEN[CS]E(\.|$) - (^|/)README(\.|$) diff --git a/test/test_blob.rb b/test/test_blob.rb index 24eaff83..149588e9 100644 --- a/test/test_blob.rb +++ b/test/test_blob.rb @@ -470,6 +470,11 @@ class TestBlob < Minitest::Test assert_predicate fixture_blob("COPYING.txt"), :documentation? assert_predicate fixture_blob("foo/COPYING"), :documentation? + assert_predicate fixture_blob("INSTALL"), :documentation? + assert_predicate fixture_blob("INSTALL.md"), :documentation? + assert_predicate fixture_blob("INSTALL.txt"), :documentation? + assert_predicate fixture_blob("foo/INSTALL"), :documentation? + refute_predicate fixture_blob("foo.md"), :documentation? end