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:
parent
16823d4a05
commit
547ba6608e
Notes:
git
2020-07-15 16:05:48 +09:00
1 changed files with 1 additions and 4 deletions
|
@ -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"]))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue