From 5da52d1210625fb00acd573b3f32281b4bde1730 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Mon, 22 Apr 2019 21:23:37 +0900 Subject: 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. --- version.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'version.c') 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 */ -- cgit v1.2.1