]> granicus.if.org Git - graphviz/commitdiff
Use RbConfig instead of obsolete and deprecated Config (7, 17 May 2013)
authorEmden R. Gansner <erg@research.att.com>
Mon, 8 Jul 2013 15:42:30 +0000 (11:42 -0400)
committerEmden R. Gansner <erg@research.att.com>
Mon, 8 Jul 2013 15:42:30 +0000 (11:42 -0400)
config/config_ruby.rb

index dd9c4c0743ce18a4bc9916f5c755aa0500d1ea86..90efcd339432c5bd4fe8fe823b74980759cb1a55 100644 (file)
@@ -1,18 +1,18 @@
 require 'rbconfig'
 
-CONFIG = Config::MAKEFILE_CONFIG
+CONFIG = RbConfig::MAKEFILE_CONFIG
 
 
 case ARGV[0]
 when "archdir"
-    puts Config::expand(CONFIG["archdir"])
+    puts RbConfig::expand(CONFIG["archdir"])
 when "lib"
-    puts Config::expand(CONFIG["libdir"])
+    puts RbConfig::expand(CONFIG["libdir"])
 when "vendorarchdir"
-    puts Config::expand(CONFIG["vendorarchdir"])
+    puts RbConfig::expand(CONFIG["vendorarchdir"])
 when "sitearchdir"
-    puts Config::expand(CONFIG["sitearchdir"])
+    puts RbConfig::expand(CONFIG["sitearchdir"])
 when "sitelib"
-    puts Config::expand(CONFIG["sitedir"])
+    puts RbConfig::expand(CONFIG["sitedir"])
 end