1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Make RUBY_RELEASE_DATE full on development

I cannot tell the order just by commit hashes.
This commit is contained in:
Nobuyoshi Nakada 2019-06-08 20:08:18 +09:00
parent 1ca03dc4f7
commit f42588f754
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -11,6 +11,8 @@ require File.expand_path('../vcs', __FILE__)
Program = $0 Program = $0
TIMEZONE_FOR_RELEASE = "+09:00" # in Japan Standard Time traditionally
@output = nil @output = nil
def self.output=(output) def self.output=(output)
if @output and @output != output if @output and @output != output
@ -74,6 +76,15 @@ vcs = nil
if title if title
"#define RUBY_LAST_COMMIT_TITLE #{title.dump}" "#define RUBY_LAST_COMMIT_TITLE #{title.dump}"
end, 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 ].compact
} }
when :doxygen when :doxygen