Merge RubyGems-3.4.15 and Bundler-2.4.15

This commit is contained in:
Hiroshi SHIBATA 2023-07-19 14:14:12 +09:00 committed by nagachika
parent a36c836433
commit e44e42c303
25 changed files with 190 additions and 106 deletions

View file

@ -6,6 +6,7 @@
#++
require_relative "../user_interaction"
require_relative "../shellwords"
class Gem::Ext::Builder
include Gem::UserInteraction
@ -56,9 +57,8 @@ class Gem::Ext::Builder
end
def self.ruby
require "shellwords"
# Gem.ruby is quoted if it contains whitespace
cmd = Gem.ruby.shellsplit
cmd = Shellwords.split(Gem.ruby)
# This load_path is only needed when running rubygems test without a proper installation.
# Prepending it in a normal installation will cause problem with order of $LOAD_PATH.
@ -82,8 +82,7 @@ class Gem::Ext::Builder
p(command)
end
results << "current directory: #{dir}"
require "shellwords"
results << command.shelljoin
results << Shellwords.join(command)
require "open3"
# Set $SOURCE_DATE_EPOCH for the subprocess.