1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
usa 2015-06-14 01:46:22 +00:00
parent f4a5136504
commit 9b04c1dd42
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Sun Jun 14 10:43:50 2015 NAKAMURA Usaku <usa@ruby-lang.org>
* 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 <kou@cozmixng.org> Sun Jun 14 10:13:55 2015 Kouhei Sutou <kou@cozmixng.org>
* lib/rexml/source.rb (REXML::IOSource#scan): Fix a typo in * lib/rexml/source.rb (REXML::IOSource#scan): Fix a typo in

View file

@ -47,7 +47,7 @@ abs_archdir = File.expand_path(archdir)
$:.unshift(abs_archdir) $:.unshift(abs_archdir)
config = File.read(conffile = File.join(abs_archdir, 'rbconfig.rb')) 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 config = Module.new {module_eval(config, conffile)}::RbConfig::CONFIG
ruby = File.join(archdir, config["RUBY_INSTALL_NAME"]+config['EXEEXT']) ruby = File.join(archdir, config["RUBY_INSTALL_NAME"]+config['EXEEXT'])