Skip to content

Commit 6b1a011

Browse files
committed
Make all documents at the top level extra_rdoc_files [ci skip]
1 parent af36ed2 commit 6b1a011

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

rdoc.gemspec

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -224,18 +224,7 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
224224
s.files << "lib/rdoc/rd/block_parser.rb" << "lib/rdoc/rd/inline_parser.rb" << "lib/rdoc/markdown.rb" << "lib/rdoc/markdown/literals.rb"
225225

226226
s.rdoc_options = ["--main", "README.rdoc"]
227-
s.extra_rdoc_files += %w[
228-
CVE-2013-0256.rdoc
229-
CONTRIBUTING.rdoc
230-
ExampleMarkdown.md
231-
ExampleRDoc.rdoc
232-
History.rdoc
233-
LEGAL.rdoc
234-
LICENSE.rdoc
235-
README.rdoc
236-
RI.rdoc
237-
TODO.rdoc
238-
]
227+
s.extra_rdoc_files += s.files.grep(%r[\A[^\/]+\.(?:rdoc|md)\z])
239228

240229
s.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
241230
s.required_rubygems_version = Gem::Requirement.new(">= 2.2")

0 commit comments

Comments
 (0)