document some workarounds for working with a recent ruby (2.3.p112 on
[booh] / setup.rb
index 0807023db269b13e37528d3d863a2767a9cebc8e..015be10857e01aa4338eeb4b19901f64f1e98102 100644 (file)
--- a/setup.rb
+++ b/setup.rb
@@ -256,7 +256,7 @@ class ConfigTable_class
 
 end
 
-c = ::Config::CONFIG
+c = ::RbConfig::CONFIG
 
 rubypath = c['bindir'] + '/' + c['ruby_install_name']
 
@@ -1246,7 +1246,7 @@ class Installer
 
   def ruby_extentions(dir)
     Dir.open(dir) {|d|
-      ents = d.select {|fname| /\.#{::Config::CONFIG['DLEXT']}\z/ =~ fname }
+      ents = d.select {|fname| /\.#{::RbConfig::CONFIG['DLEXT']}\z/ =~ fname }
       if ents.empty?
         setup_rb_error "no ruby extention exists: 'ruby #{$0} setup' first"
       end