summaryrefslogtreecommitdiff
path: root/version.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-04-22 21:23:37 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-04-22 21:27:34 +0900
commit5da52d1210625fb00acd573b3f32281b4bde1730 (patch)
treeb21d24b02dfc1da995bc280142e2aaffcedf30ba /version.c
parentdd0b516399f1e009667a99e815bf86c6a1245ee5 (diff)
Migrate RUBY_VERSION/RUBY_DESCRIPTION to Git
from Subversion. This behavior is tentative and not discussed well. The point of discussion will be just the length of commit hash, and I thought we should include this kind of change in 2.7.0-preview1 release even before the length is fixed yet. Let's discuss that afterwards and fix it later as needed. Naruse suggested that length=10 is very unlikely to cause conflict, and thus it's used by email notification and rubyci now. This behavior is in favor of that for now.
Diffstat (limited to 'version.c')
-rw-r--r--version.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/version.c b/version.c
index 9377de44d5..6b96dee377 100644
--- a/version.c
+++ b/version.c
@@ -33,6 +33,7 @@ const int ruby_api_version[] = {
STRINGIZE(RUBY_VERSION_MINOR) "." \
STRINGIZE(RUBY_VERSION_TEENY) ""
const char ruby_version[] = RUBY_VERSION;
+const char ruby_revision[] = RUBY_REVISION;
const char ruby_release_date[] = RUBY_RELEASE_DATE;
const char ruby_platform[] = RUBY_PLATFORM;
const int ruby_patchlevel = RUBY_PATCHLEVEL;
@@ -46,7 +47,6 @@ void
Init_version(void)
{
enum {ruby_patchlevel = RUBY_PATCHLEVEL};
- enum {ruby_revision = RUBY_REVISION};
VALUE version;
VALUE ruby_engine_name;
/*
@@ -69,7 +69,7 @@ Init_version(void)
/*
* The SVN revision for this ruby.
*/
- rb_define_global_const("RUBY_REVISION", MKINT(revision));
+ rb_define_global_const("RUBY_REVISION", MKSTR(revision));
/*
* The copyright string for ruby
*/