summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-08-06 10:14:48 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-08-18 12:31:51 +0900
commit6e10267714817424049049dadd14e931aa25bf01 (patch)
tree639027964ac4f4bc7009c6a00f5c27999221b19e
parent75a968d88af62dda468b5fb0481279c638483eab (diff)
[rubygems/rubygems] Removed to workaround for Bundler 2.2.
The current oldest support Ruby version is 3.2. And Ruby 3.2 bundled Bundler 2.5. It means RG 4.0 can drop to support Bundler 2.2. https://github.com/rubygems/rubygems/commit/592ac09b5c
-rw-r--r--lib/rubygems/installer.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb
index 2b3200223a..d0092899a4 100644
--- a/lib/rubygems/installer.rb
+++ b/lib/rubygems/installer.rb
@@ -67,23 +67,6 @@ class Gem::Installer
attr_reader :package
class << self
- #
- # 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.
-
- def inherited(klass)
- if klass.name == "Bundler::RubyGemsGemInstaller"
- require "rubygems/command"
- end
-
- super(klass)
- end
-
##
# Overrides the executable format.
#