2fed55ed99 (master): [ruby/rubygems] Load RDoc before the test sandbox in TestGemRDoc

0 views
Skip to first unread message

Hiroshi SHIBATA

unread,
8:07 PM (4 hours ago) 8:07 PM
to ruby...@g.ruby-lang.org
Hiroshi SHIBATA 2026-08-30 23:37:50 +0000 (Sun, 30 Aug 2026)

New Revision: 2fed55ed99

https://github.com/ruby/ruby/commit/2fed55ed99

Log:
[ruby/rubygems] Load RDoc before the test sandbox in TestGemRDoc

RDoc 8 depends on rbs, and that dependency stays unresolved when several
rbs versions are installed. It is then resolved on the first require of
rbs, which happens inside Gem::RDoc#setup, after Gem::TestCase#setup has
pointed GEM_HOME at an empty temporary directory, so it raises LoadError.

https://github.com/ruby/rubygems/commit/e794ab7e5f

Co-Authored-By: Claude Opus 5 <nor...@anthropic.com>

Modified files:
test/rubygems/test_gem_rdoc.rb
Reply all
Reply to author
Forward
0 new messages