From 9b76b5057cb3f8344332f1dad0bf739c24d4381f Mon Sep 17 00:00:00 2001 From: drbrain Date: Thu, 6 Dec 2012 07:35:45 +0000 Subject: * test/rake/helper.rb: Load envutil correctly. Removed useless rescue for signal propagation tests * lib/rake/file_utils.rb: Prefer the built ruby. * test/rake/test_rake_functional.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rake/file_utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rake/file_utils.rb') diff --git a/lib/rake/file_utils.rb b/lib/rake/file_utils.rb index e02d541ab8..606bfb65b5 100644 --- a/lib/rake/file_utils.rb +++ b/lib/rake/file_utils.rb @@ -6,7 +6,7 @@ require 'fileutils' # added to the FileUtils utility functions. module FileUtils # Path to the currently running Ruby program - RUBY = File.join( + RUBY = ENV['RUBY'] || File.join( RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'] + RbConfig::CONFIG['EXEEXT']). sub(/.*\s.*/m, '"\&"') -- cgit v1.2.3