From 071f564fe547eaafe672ba0baa7036540919fc0d Mon Sep 17 00:00:00 2001 From: usa Date: Sun, 14 Jun 2015 01:46:22 +0000 Subject: * tool/runruby.rb: just remove the lines of RUBY_VERSION check and raise instead of replacing the check to `true`, for getting rid of a warning `possibly useless use of true in void context`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ tool/runruby.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 92e8f5b06c..c69e165963 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Jun 14 10:43:50 2015 NAKAMURA Usaku + + * tool/runruby.rb: just remove the lines of RUBY_VERSION check and raise + instead of replacing the check to `true`, for getting rid of a + warning `possibly useless use of true in void context`. + Sun Jun 14 10:13:55 2015 Kouhei Sutou * lib/rexml/source.rb (REXML::IOSource#scan): Fix a typo in diff --git a/tool/runruby.rb b/tool/runruby.rb index 34b51da86e..c6aaaa9cce 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\b.*(\sor\s*)$/, '\1true\2') +config.sub!(/^(\s*)RUBY_VERSION\b.*(\sor\s*)\n.*\n/, '') config = Module.new {module_eval(config, conffile)}::RbConfig::CONFIG ruby = File.join(archdir, config["RUBY_INSTALL_NAME"]+config['EXEEXT']) -- cgit v1.2.3