summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKazuki Yamaguchi <[email protected]>2025-01-09 01:17:51 +0900
committergit <[email protected]>2025-01-08 16:17:57 +0000
commite728170043ab9afb0f064af2bcfcf6ca06f9573d (patch)
tree9448d713c5becd33e35d3c8ad57b85d624269f2f /lib
parent62a1528020de16c2f60ec1aea563f7b764946c59 (diff)
[ruby/rdoc] Finalize RDoc::Options before calling
RDoc::RDoc#parse_files (https://github.com/ruby/rdoc/pull/1274) Commit https://github.com/ruby/rdoc/commit/6cf6e1647b97, which went to v6.5.0, changed `RDoc::Options#parse` to not call `#finish` in it. While the commit adjusted other call sites, it missed `lib/rdoc/rubygems_hook.rb`. `RDoc::Options#finish` prepares the include paths for `:include:` directives. This has to be done before starting to parse sources. I think this should fix https://github.com/ruby/net-http/issues/193 + https://github.com/ruby/net-http/pull/194. https://github.com/ruby/rdoc/commit/d62da8ca09
Diffstat (limited to 'lib')
-rw-r--r--lib/rdoc/rubygems_hook.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rdoc/rubygems_hook.rb b/lib/rdoc/rubygems_hook.rb
index bc6065438b..bf01081ef2 100644
--- a/lib/rdoc/rubygems_hook.rb
+++ b/lib/rdoc/rubygems_hook.rb
@@ -181,10 +181,10 @@ class RDoc::RubyGemsHook
options = ::RDoc::Options.new
options.default_title = "#{@spec.full_name} Documentation"
options.parse args
+ options.quiet = !Gem.configuration.really_verbose
+ options.finish
end
- options.quiet = !Gem.configuration.really_verbose
-
@rdoc = new_rdoc
@rdoc.options = options