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

* win32/resource.rb: CONFIG["TEENY"] is not ruby's version but API's

one.  So need to use RUBY_VERSION instead.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2009-06-24 07:09:40 +00:00
parent a560aa5620
commit 62c885753c
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Jun 24 16:08:03 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/resource.rb: CONFIG["TEENY"] is not ruby's version but API's
one. So need to use RUBY_VERSION instead.
Wed Jun 24 16:07:04 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/mkexports.rb: rbconfig.rb exists on ".".

View file

@ -4,7 +4,7 @@ require 'rbconfig'
CONFIG = RbConfig::MAKEFILE_CONFIG
version = %w'MAJOR MINOR TEENY'.map{|v| CONFIG[v] || '0'}
version = RUBY_VERSION.split(/\./)
patch = CONFIG['PATCHLEVEL']
nversion = (version + [patch.to_i < 0 ? '0' : patch]).join(',')
sversion = version.join('.') + (patch.to_i < 0 ? 'dev' : "p#{patch}")