From 682cc2d82dd12665085e38e170b37b2d039b32c9 Mon Sep 17 00:00:00 2001 From: Joel Parker Henderson Date: Sun, 19 Jul 2015 19:36:12 -0600 Subject: [PATCH] Add documentation categorization for CHANGELOG et. al. --- lib/linguist/documentation.yml | 1 + test/test_blob.rb | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/lib/linguist/documentation.yml b/lib/linguist/documentation.yml index 6e06329f..f95a547d 100644 --- a/lib/linguist/documentation.yml +++ b/lib/linguist/documentation.yml @@ -16,6 +16,7 @@ ## Documentation files ## +- (^|/)CHANGE(S|LOG)?(\.|$) - (^|/)CONTRIBUTING(\.|$) - (^|/)COPYING(\.|$) - (^|/)INSTALL(\.|$) diff --git a/test/test_blob.rb b/test/test_blob.rb index 51c0398a..976c83ff 100644 --- a/test/test_blob.rb +++ b/test/test_blob.rb @@ -513,6 +513,21 @@ class TestBlob < Minitest::Test assert_predicate fixture_blob("README.txt"), :documentation? assert_predicate fixture_blob("foo/README"), :documentation? + assert_predicate fixture_blob("CHANGE"), :documentation? + assert_predicate fixture_blob("CHANGE.md"), :documentation? + assert_predicate fixture_blob("CHANGE.txt"), :documentation? + assert_predicate fixture_blob("foo/CHANGE"), :documentation? + + assert_predicate fixture_blob("CHANGELOG"), :documentation? + assert_predicate fixture_blob("CHANGELOG.md"), :documentation? + assert_predicate fixture_blob("CHANGELOG.txt"), :documentation? + assert_predicate fixture_blob("foo/CHANGELOG"), :documentation? + + assert_predicate fixture_blob("CHANGES"), :documentation? + assert_predicate fixture_blob("CHANGES.md"), :documentation? + assert_predicate fixture_blob("CHANGES.txt"), :documentation? + assert_predicate fixture_blob("foo/CHANGES"), :documentation? + assert_predicate fixture_blob("CONTRIBUTING"), :documentation? assert_predicate fixture_blob("CONTRIBUTING.md"), :documentation? assert_predicate fixture_blob("CONTRIBUTING.txt"), :documentation?