Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem::Installer.inherited
inherited(klass)
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/installer.rb, line 81
def inherited(klass)
if klass.name == "Bundler::RubyGemsGemInstaller"
require "rubygems/command"
end
super(klass)
end
Changes in rubygems to lazily loading rubygems/command (in order to lazily load optparse as a side effect) affect bundler’s custom installer which uses Gem::Command without requiring it (up until bundler 2.2.29). This hook is to compensate for that missing require.
TODO: Remove when rubygems no longer supports running on bundler older than 2.2.29.