summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-25 09:17:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-25 09:17:28 +0000
commit7722b3b67f764afd9c796c99b53dbfd54a36dcf2 (patch)
treecef1c9a008685cd899fd3ef19b1ca67bbd1f1ff0
parentbe5b7f61307c6caaafb7a760b29f3c2b3dee9dfb (diff)
runruby.rb: follow r49740
* tool/runruby.rb: follow the change of RUBY_VERSION check in rbconfig by r49740. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rwxr-xr-xtool/runruby.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/runruby.rb b/tool/runruby.rb
index 86b9327..656aebe 100755
--- a/tool/runruby.rb
+++ b/tool/runruby.rb
@@ -47,7 +47,7 @@ abs_archdir = File.expand_path(archdir)
$:.unshift(abs_archdir)
config = File.read(conffile = File.join(abs_archdir, 'rbconfig.rb'))
-config.sub!(/^(\s*)RUBY_VERSION\s*==.*(\sor\s*)$/, '\1true\2')
+config.sub!(/^(\s*)RUBY_VERSION\s.*(\sor\s*)$/, '\1true\2')
config = Module.new {module_eval(config, conffile)}::RbConfig::CONFIG
ruby = File.join(archdir, config["RUBY_INSTALL_NAME"]+config['EXEEXT'])