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

[rubygems/rubygems] Easier way to find path to ruby binary

https://github.com/rubygems/rubygems/commit/cdc201f5c4
This commit is contained in:
David Rodríguez 2020-06-24 19:59:50 +02:00 committed by Hiroshi SHIBATA
parent 16823d4a05
commit 547ba6608e
Notes: git 2020-07-15 16:05:48 +09:00

View file

@ -62,10 +62,7 @@ private
require "rbconfig" require "rbconfig"
ruby = File.join(RbConfig::CONFIG["bindir"], RbConfig::CONFIG["ruby_install_name"]) cmd = [RbConfig.ruby, $0, *ARGV].compact
ruby << RbConfig::CONFIG["EXEEXT"]
cmd = [ruby, $0, *ARGV].compact
ENV["RUBYOPT"] = opt_add("-I#{local_copy_path.join("lib")}", opt_remove("--disable-gems", ENV["RUBYOPT"])) ENV["RUBYOPT"] = opt_add("-I#{local_copy_path.join("lib")}", opt_remove("--disable-gems", ENV["RUBYOPT"]))