ruby-changes:42385
From: usa <ko1@a...>
Date: Fri, 1 Apr 2016 00:04:38 +0900 (JST)
Subject: [ruby-changes:42385] usa:r54459 (trunk): * tool/merger.rb (version): version number may be two-digit.
usa 2016-04-01 00:04:34 +0900 (Fri, 01 Apr 2016) New Revision: 54459 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54459 Log: * tool/merger.rb (version): version number may be two-digit. Modified files: trunk/tool/merger.rb Index: tool/merger.rb =================================================================== --- tool/merger.rb (revision 54458) +++ tool/merger.rb (revision 54459) @@ -47,7 +47,7 @@ def version https://github.com/ruby/ruby/blob/trunk/tool/merger.rb#L47 open 'version.h', 'rb' do |f| f.each_line do |l| case l - when /^#define RUBY_VERSION "(\d)\.(\d)\.(\d)"$/ + when /^#define RUBY_VERSION "(\d+)\.(\d+)\.(\d+)"$/ v = $~.captures when /^#define RUBY_PATCHLEVEL (-?\d+)$/ p = $1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/