Skip to content

Commit

Permalink
Revert RUBY_RELEASE_DATE to date only
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jun 21, 2019
1 parent 1c7e303 commit 8a1dd9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 1 addition & 6 deletions tool/file2lastrev.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,7 @@ def self.output=(output)
"#define RUBY_LAST_COMMIT_TITLE #{title.dump}"
end,
if modified
modified.utc.strftime(<<TIME)
#if defined(RUBY_PATCHLEVEL) && (RUBY_PATCHLEVEL == -1)
#undef RUBY_RELEASE_DATE
#define RUBY_RELEASE_DATE "%FT%TZ"
#endif
TIME
modified.utc.strftime('#define RUBY_RELEASE_DATETIME "%FT%TZ"')
end,
].compact
}
Expand Down
5 changes: 4 additions & 1 deletion version.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
# define RUBY_BRANCH_NAME "trunk"
# endif
# define RUBY_REVISION_STR " "RUBY_BRANCH_NAME" "RUBY_REVISION
# ifndef RUBY_RELEASE_DATETIME
# define RUBY_RELEASE_DATETIME RUBY_RELEASE_DATE
# endif
# else
# define RUBY_REVISION_STR " revision "RUBY_REVISION
# endif
Expand All @@ -63,7 +66,7 @@
# define RUBY_DESCRIPTION_WITH(opt) \
"ruby "RUBY_VERSION \
RUBY_PATCHLEVEL_STR \
" ("RUBY_RELEASE_DATE \
" ("RUBY_RELEASE_DATETIME \
RUBY_REVISION_STR")"opt" " \
"["RUBY_PLATFORM"]"
# define RUBY_COPYRIGHT \
Expand Down

0 comments on commit 8a1dd9b

Please sign in to comment.