diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-15 17:59:48 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-17 17:08:50 +0900 |
commit | 63d78afc2d0520cff300494fd875c905349c12a0 (patch) | |
tree | 1601888ab566f5059f74b5349c40109c0300cefc /spec/bundler/support/helpers.rb | |
parent | 2e6509498c1daf3335ac6343bf59441d42011b64 (diff) | |
download | ruby-63d78afc2d0520cff300494fd875c905349c12a0.tar.gz |
[bundler/bundler] Remove more dead code
https://github.com/bundler/bundler/commit/17d4d0de8e
Diffstat (limited to 'spec/bundler/support/helpers.rb')
-rw-r--r-- | spec/bundler/support/helpers.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb index 46d8eb52a2..abb4cba45e 100644 --- a/spec/bundler/support/helpers.rb +++ b/spec/bundler/support/helpers.rb @@ -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 |