mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 01:23:57 +02:00
Merge RubyGems-3.4.15 and Bundler-2.4.15
This commit is contained in:
parent
a36c836433
commit
e44e42c303
25 changed files with 190 additions and 106 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue