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

ruby-changes:38013

From: nobu <ko1@a...>
Date: Thu, 26 Mar 2015 09:30:27 +0900 (JST)
Subject: [ruby-changes:38013] nobu:r50094 (trunk): mkconfig.rb: embed version substring

nobu	2015-03-26 09:30:07 +0900 (Thu, 26 Mar 2015)

  New Revision: 50094

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

  Log:
    mkconfig.rb: embed version substring
    
    * tool/mkconfig.rb (RbConfig): embed substring of the version, not
      at the runtime, and fall back to the version itself for the case
      it does not include the teeny version.

  Modified files:
    trunk/tool/mkconfig.rb
Index: tool/mkconfig.rb
===================================================================
--- tool/mkconfig.rb	(revision 50093)
+++ tool/mkconfig.rb	(revision 50094)
@@ -171,7 +171,7 @@ puts %[\ https://github.com/ruby/ruby/blob/trunk/tool/mkconfig.rb#L171
 # changes made to this file will be lost the next time ruby is built.
 
 module RbConfig
-  RUBY_VERSION.start_with?("#{version}"[/^[0-9]+[.][0-9]+[.]/]) or
+  RUBY_VERSION.start_with?("#{version[/^[0-9]+\.[0-9]+\./] || version}") or
     raise "ruby lib version (#{version}) doesn't match executable version (\#{RUBY_VERSION})"
 
 ]

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

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