[前][次][番号順一覧][スレッド一覧]

ruby-changes:62241

From: David <ko1@a...>
Date: Wed, 15 Jul 2020 16:05:55 +0900 (JST)
Subject: [ruby-changes:62241] 547ba6608e (master): [rubygems/rubygems] Easier way to find path to ruby binary

https://git.ruby-lang.org/ruby.git/commit/?id=547ba6608e

From 547ba6608e3e81674f829b75fcb0a9023889e235 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Wed, 24 Jun 2020 19:59:50 +0200
Subject: [rubygems/rubygems] Easier way to find path to ruby binary

https://github.com/rubygems/rubygems/commit/cdc201f5c4

diff --git a/spec/bundler/support/rubygems_version_manager.rb b/spec/bundler/support/rubygems_version_manager.rb
index c3d24fc1..66dcdc7 100644
--- a/spec/bundler/support/rubygems_version_manager.rb
+++ b/spec/bundler/support/rubygems_version_manager.rb
@@ -62,10 +62,7 @@ private https://github.com/ruby/ruby/blob/trunk/spec/bundler/support/rubygems_version_manager.rb#L62
 
     require "rbconfig"
 
-    ruby = File.join(RbConfig::CONFIG["bindir"], RbConfig::CONFIG["ruby_install_name"])
-    ruby << RbConfig::CONFIG["EXEEXT"]
-
-    cmd = [ruby, $0, *ARGV].compact
+    cmd = [RbConfig.ruby, $0, *ARGV].compact
 
     ENV["RUBYOPT"] = opt_add("-I#{local_copy_path.join("lib")}", opt_remove("--disable-gems", ENV["RUBYOPT"]))
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]