ruby-changes:56054
From: Nobuyoshi <ko1@a...>
Date: Sat, 8 Jun 2019 20:13:02 +0900 (JST)
Subject: [ruby-changes:56054] Nobuyoshi Nakada: f42588f754 (trunk): Make RUBY_RELEASE_DATE full on development
https://git.ruby-lang.org/ruby.git/commit/?id=f42588f754 From f42588f754d5885ec30631e5008c383f3ef905d8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 8 Jun 2019 20:08:18 +0900 Subject: Make RUBY_RELEASE_DATE full on development I cannot tell the order just by commit hashes. diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb index e22aa88..f7df07e 100755 --- a/tool/file2lastrev.rb +++ b/tool/file2lastrev.rb @@ -11,6 +11,8 @@ require File.expand_path('../vcs', __FILE__) https://github.com/ruby/ruby/blob/trunk/tool/file2lastrev.rb#L11 Program = $0 +TIMEZONE_FOR_RELEASE = "+09:00" # in Japan Standard Time traditionally + @output = nil def self.output=(output) if @output and @output != output @@ -74,6 +76,15 @@ vcs = nil https://github.com/ruby/ruby/blob/trunk/tool/file2lastrev.rb#L76 if title "#define RUBY_LAST_COMMIT_TITLE #{title.dump}" end, + if modified + modified.getlocal(TIMEZONE_FOR_RELEASE). + strftime(<<TIME) +#if defined(RUBY_PATCHLEVEL) && (RUBY_PATCHLEVEL == -1) +#undef RUBY_RELEASE_DATE +#define RUBY_RELEASE_DATE "%FT%T%:z" +#endif +TIME + end, ].compact } when :doxygen -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/