summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-24 07:09:40 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-24 07:09:40 +0000
commit4d1fe7b1b2a4ee9d05d1a5b3b1f66b3c93629cde (patch)
treea26b4d9b71eb09d7ef9f99516bb8d3ca607c7c2e /win32
parent262a37984a967dc806ecb4c591239a9ae0aba417 (diff)
downloadruby-4d1fe7b1b2a4ee9d05d1a5b3b1f66b3c93629cde.tar.gz
ruby-4d1fe7b1b2a4ee9d05d1a5b3b1f66b3c93629cde.tar.xz
ruby-4d1fe7b1b2a4ee9d05d1a5b3b1f66b3c93629cde.zip
* win32/resource.rb: CONFIG["TEENY"] is not ruby's version but API's
one. So need to use RUBY_VERSION instead. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rwxr-xr-xwin32/resource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/resource.rb b/win32/resource.rb
index 06b0aca7a..eda450952 100755
--- a/win32/resource.rb
+++ b/win32/resource.rb
@@ -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}")