summaryrefslogtreecommitdiff
path: root/win32/resource.rb
diff options
context:
space:
mode:
Diffstat (limited to 'win32/resource.rb')
-rwxr-xr-xwin32/resource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/resource.rb b/win32/resource.rb
index 06b0aca7af4..eda450952bf 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}")