path: root/tool/mkconfig.rb
diff options
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-26 00:30:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-26 00:30:07 +0000
commit733a03c285e9da31b5e01904fac5ee6f2c397576 (patch)
tree5b704d642d156096aeb8bab314656e511d0c4dcb /tool/mkconfig.rb
parent95de0e6841262214f68c487d7ff317806eecb9e8 (diff)
mkconfig.rb: embed version substring
* tool/mkconfig.rb (RbConfig): embed substring of the version, not at the runtime, and fall back to the version itself for the case it does not include the teeny version. git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/mkconfig.rb')
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb
index 7919aec..fc91dde 100755
--- a/tool/mkconfig.rb
+++ b/tool/mkconfig.rb
@@ -171,7 +171,7 @@ puts %[\
# changes made to this file will be lost the next time ruby is built.
module RbConfig
- RUBY_VERSION.start_with?("#{version}"[/^[0-9]+[.][0-9]+[.]/]) or
+ RUBY_VERSION.start_with?("#{version[/^[0-9]+\.[0-9]+\./] || version}") or
raise "ruby lib version (#{version}) doesn't match executable version (\#{RUBY_VERSION})"