Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class method

Gem::Installer.inherited

inherited(klass)

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.