diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-06 07:35:45 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-06 07:35:45 +0000 |
commit | 9b76b5057cb3f8344332f1dad0bf739c24d4381f (patch) | |
tree | b52f2228795ca9aa416f9d727fa9ec7b3112fbe8 /lib/rake | |
parent | 854758c464e6cdba06eed5d05b7fe10c33788c89 (diff) | |
download | ruby-9b76b5057cb3f8344332f1dad0bf739c24d4381f.tar.gz |
* 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
Diffstat (limited to 'lib/rake')
-rw-r--r-- | lib/rake/file_utils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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, '"\&"') |