Skip to content

Commit a629561

Browse files
Merge pull request #8903 from rubygems/removed-workaround-bundler-gem-installer
Removed to workaround for Bundler 2.2
2 parents adf6a00 + 592ac09 commit a629561

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)