setup.rb in swishe-0.4.2 vs setup.rb in swishe-0.4.3
- old
+ new
@@ -254,12 +254,17 @@
lookup(key).set val
end
end
-c = ::Config::CONFIG
+c = if defined?(RbConfig) then
+ RbConfig::CONFIG
+ else
+ ::Config::CONFIG
+ end
+
rubypath = c['bindir'] + '/' + c['ruby_install_name']
major = c['MAJOR'].to_i
minor = c['MINOR'].to_i
teeny = c['TEENY'].to_i
@@ -352,10 +357,9 @@
class ConfigTable_class # open again
ALIASES = {
'std-ruby' => 'stdruby',
'site-ruby-common' => 'siteruby', # For backward compatibility
'site-ruby' => 'siterubyver', # For backward compatibility
- 'bin-dir' => 'bindir',
'bin-dir' => 'bindir',
'rb-dir' => 'rbdir',
'so-dir' => 'sodir',
'data-dir' => 'datadir',
'ruby-path' => 'rubypath',