1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Remove more dead code

https://github.com/bundler/bundler/commit/17d4d0de8e
This commit is contained in:
David Rodríguez 2019-08-15 17:59:48 +02:00 committed by Hiroshi SHIBATA
parent 2e6509498c
commit 63d78afc2d
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -200,11 +200,7 @@ module Spec
ENV["RUBYOPT"] = old
end
def gem_command(command, args = "", options = {})
if command == :exec
args = args.gsub(/(?=")/, "\\")
args = %("#{args}")
end
def gem_command(command, args = "")
gem = ENV["BUNDLE_GEM"] || "#{Gem.ruby} -S gem --backtrace"
sys_exec("#{gem} #{command} #{args}")
end