From edb65a6254a1e06bb2155678676d6798acd7a51e Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 13 Jan 2019 13:49:25 +0000 Subject: [PATCH] rdoc: ignore gemspec files [ruby-core:91067] [Bug #15531] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/options.rb | 1 + test/rdoc/test_rdoc_options.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rdoc/options.rb b/lib/rdoc/options.rb index f83972b881..53cc3af63c 100644 --- a/lib/rdoc/options.rb +++ b/lib/rdoc/options.rb @@ -346,6 +346,7 @@ class RDoc::Options @dry_run = false @exclude = %w[ ~\z \.orig\z \.rej\z \.bak\z + \.gemspec\z ] @files = nil @force_output = false diff --git a/test/rdoc/test_rdoc_options.rb b/test/rdoc/test_rdoc_options.rb index 1eb20618a5..b6769d14b3 100644 --- a/test/rdoc/test_rdoc_options.rb +++ b/test/rdoc/test_rdoc_options.rb @@ -66,7 +66,7 @@ class TestRDocOptions < RDoc::TestCase expected = { 'charset' => 'UTF-8', 'encoding' => encoding, - 'exclude' => %w[~\z \.orig\z \.rej\z \.bak\z], + 'exclude' => %w[~\z \.orig\z \.rej\z \.bak\z \.gemspec\z], 'hyperlink_all' => false, 'line_numbers' => false, 'locale' => nil,