Skip to content

Commit 592ac09

Browse files
committed
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.
1 parent 97e9da6 commit 592ac09

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/rubygems/installer.rb

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -67,23 +67,6 @@ class Gem::Installer
6767
attr_reader :package
6868

6969
class << self
70-
#
71-
# Changes in rubygems to lazily loading `rubygems/command` (in order to
72-
# lazily load `optparse` as a side effect) affect bundler's custom installer
73-
# which uses `Gem::Command` without requiring it (up until bundler 2.2.29).
74-
# This hook is to compensate for that missing require.
75-
#
76-
# TODO: Remove when rubygems no longer supports running on bundler older
77-
# than 2.2.29.
78-
79-
def inherited(klass)
80-
if klass.name == "Bundler::RubyGemsGemInstaller"
81-
require "rubygems/command"
82-
end
83-
84-
super(klass)
85-
end
86-
8770
##
8871
# Overrides the executable format.
8972
#

0 commit comments

Comments
 (0)