ruby-changes:54337
From: naruse <ko1@a...>
Date: Tue, 25 Dec 2018 18:34:40 +0900 (JST)
Subject: [ruby-changes:54337] naruse:r66550 (trunk): Keep RUBY_RELEASE_DATE's definition
naruse 2018-12-25 18:34:35 +0900 (Tue, 25 Dec 2018) New Revision: 66550 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66550 Log: Keep RUBY_RELEASE_DATE's definition if it uses Y/M/D macros. Modified files: trunk/tool/merger.rb Index: tool/merger.rb =================================================================== --- tool/merger.rb (revision 66549) +++ tool/merger.rb (revision 66550) @@ -91,12 +91,13 @@ def version_up(inc=nil) https://github.com/ruby/ruby/blob/trunk/tool/merger.rb#L91 end str = open 'version.h', 'rb' do |f| f.read end + ruby_release_date = str[/RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR/] || d.strftime('"%Y-%m-%d"') [%W[RUBY_VERSION "#{v.join '.'}"], %W[RUBY_VERSION_CODE #{v.join ''}], %W[RUBY_VERSION_MAJOR #{v[0]}], %W[RUBY_VERSION_MINOR #{v[1]}], %W[RUBY_VERSION_TEENY #{v[2]}], - %W[RUBY_RELEASE_DATE "#{d.strftime '%Y-%m-%d'}"], + %W[RUBY_RELEASE_DATE #{ruby_release_date}], %W[RUBY_RELEASE_CODE #{d.strftime '%Y%m%d'}], %W[RUBY_PATCHLEVEL #{pl}], %W[RUBY_RELEASE_YEAR #{d.year}], -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/