ruby-changes:37674
From: nobu <ko1@a...>
Date: Thu, 26 Feb 2015 00:05:01 +0900 (JST)
Subject: [ruby-changes:37674] nobu:r49755 (trunk): runruby.rb: update pattern
nobu 2015-02-26 00:04:45 +0900 (Thu, 26 Feb 2015) New Revision: 49755 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49755 Log: runruby.rb: update pattern * tool/runruby.rb: no space may be after RUBY_VERSION. Modified files: trunk/tool/runruby.rb Index: tool/runruby.rb =================================================================== --- tool/runruby.rb (revision 49754) +++ tool/runruby.rb (revision 49755) @@ -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\s.*(\sor\s*)$/, '\1true\2') +config.sub!(/^(\s*)RUBY_VERSION\b.*(\sor\s*)$/, '\1true\2') 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/