[前][次][番号順一覧][スレッド一覧]

ruby-changes:38805

From: usa <ko1@a...>
Date: Sun, 14 Jun 2015 10:46:40 +0900 (JST)
Subject: [ruby-changes:38805] usa:r50886 (trunk): * tool/runruby.rb: just remove the lines of RUBY_VERSION check and raise

usa	2015-06-14 10:46:22 +0900 (Sun, 14 Jun 2015)

  New Revision: 50886

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50886

  Log:
    * 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`.

  Modified files:
    trunk/ChangeLog
    trunk/tool/runruby.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50885)
+++ ChangeLog	(revision 50886)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Jun 14 10:43:50 2015  NAKAMURA Usaku  <usa@r...>
+
+	* 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@c...>
 
 	* lib/rexml/source.rb (REXML::IOSource#scan): Fix a typo in
Index: tool/runruby.rb
===================================================================
--- tool/runruby.rb	(revision 50885)
+++ tool/runruby.rb	(revision 50886)
@@ -47,7 +47,7 @@ abs_archdir = File.expand_path(archdir) https://github.com/ruby/ruby/blob/trunk/tool/runruby.rb#L47
 $:.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'])

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]