Skip to content

Commit

Permalink
Don't use gemdeps on bundler binstub
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Aug 4, 2021
1 parent 3663c11 commit 320fdc1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/rubygems/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,7 @@ def app_script_text(bin_file_name)
#
require 'rubygems'
Gem.use_gemdeps
#{gemdeps_load(spec.name)}
version = "#{Gem::Requirement.default_prerelease}"
str = ARGV.first
Expand All @@ -784,6 +782,15 @@ def app_script_text(bin_file_name)
TEXT
end

def gemdeps_load(name)
return '' if name == "bundler"

<<-TEXT
Gem.use_gemdeps
TEXT
end

##
# return the stub script text used to launch the true Ruby script

Expand Down

0 comments on commit 320fdc1

Please sign in to comment.