[前][次][番号順一覧][スレッド一覧]

ruby-changes:72057

From: Nobuyoshi <ko1@a...>
Date: Sat, 4 Jun 2022 16:53:24 +0900 (JST)
Subject: [ruby-changes:72057] 2e6aee6ef2 (master): [ruby/rdoc] Make all documents at the top level `extra_rdoc_files` [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=2e6aee6ef2

From 2e6aee6ef235be404804aeb9a5e6cb8dbb79c29a Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 4 Jun 2022 16:51:59 +0900
Subject: [ruby/rdoc] Make all documents at the top level `extra_rdoc_files`
 [ci skip]

https://github.com/ruby/rdoc/commit/6b1a011243
---
 lib/rdoc/rdoc.gemspec | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/lib/rdoc/rdoc.gemspec b/lib/rdoc/rdoc.gemspec
index 525a15fcde..547a67b04b 100644
--- a/lib/rdoc/rdoc.gemspec
+++ b/lib/rdoc/rdoc.gemspec
@@ -229,18 +229,7 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat https://github.com/ruby/ruby/blob/trunk/lib/rdoc/rdoc.gemspec#L229
   s.files << "lib/rdoc/rd/block_parser.rb" << "lib/rdoc/rd/inline_parser.rb" << "lib/rdoc/markdown.rb" << "lib/rdoc/markdown/literals.rb"
 
   s.rdoc_options = ["--main", "README.rdoc"]
-  s.extra_rdoc_files += %w[
-    CVE-2013-0256.rdoc
-    CONTRIBUTING.rdoc
-    ExampleMarkdown.md
-    ExampleRDoc.rdoc
-    History.rdoc
-    LEGAL.rdoc
-    LICENSE.rdoc
-    README.rdoc
-    RI.rdoc
-    TODO.rdoc
-  ]
+  s.extra_rdoc_files += s.files.grep(%r[\A[^\/]+\.(?:rdoc|md)\z])
 
   s.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
   s.required_rubygems_version = Gem::Requirement.new(">= 2.2")
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]