Silence doc warnings during 'gem install net-http'#194
Silence doc warnings during 'gem install net-http'#1940x1eef wants to merge 1 commit intoruby:masterfrom
Conversation
Fix #193 Reproduction steps: gem build net-http.gemspec mv net-http-0.5.0.gem ${HOME} cd ${HOME} gem install net-http-0.5.0.gem
|
@hsbt Hello! Is this pull request useful or no ? This repository has 15 pull requests, some have no comments, and some are years old. I'd rather not maintain such a pull request, and if there's no intention of merging it, I'd rather close. I don't mean to be rude with this message. |
deivid-rodriguez
left a comment
There was a problem hiding this comment.
I can reproduce this with gem build && gem install net-http-0.6.0.gem --document and this PR fixes it 👍.
|
@hsbt I'm not an rdoc expert but I think this PR is correct and can be merged 👍. |
|
I'm not sure that works on |
|
I believe this is a regression in RDoc. A relative path from the root directory works with Ruby 3.1.6 and RubyGems/RDoc bundled with it, but not with later versions. |
|
I submitted ruby/rdoc#1274 to include the gem root directory in the search paths again. I think an even easier workaround for net-http is to explicitly specify the path in |
Commit 6cf6e16, 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 ruby/net-http#193 + ruby/net-http#194.
RDoc::RDoc#parse_files (ruby/rdoc#1274) Commit ruby/rdoc@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 ruby/net-http#193 + ruby/net-http#194. ruby/rdoc@d62da8ca09
|
Thanks! Closing. |
How would that work ? With |
Fix #193
Reproduction steps:
gem build net-http.gemspec
mv net-http-0.5.0.gem ${HOME}
cd ${HOME}
gem install net-http-0.5.0.gem