summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-30 16:34:01 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-30 16:34:01 +0000
commitd7a61d928d3844abc03764f2c48425eb109ecd41 (patch)
tree2743a45814ed318f42133f37462453d6444157a8
parent4653ee670f3d47b49c407116187dfd0dba775c1c (diff)
downloadruby-d7a61d928d3844abc03764f2c48425eb109ecd41.tar.gz
ruby-d7a61d928d3844abc03764f2c48425eb109ecd41.tar.xz
ruby-d7a61d928d3844abc03764f2c48425eb109ecd41.zip
* ext/extmk.rb: use RbConfig instead of Config.
* instruby.rb: ditto. * lib/rubygems.rb: ditto. * test/rubygems/test_config.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog10
-rw-r--r--ext/extmk.rb2
-rwxr-xr-xinstruby.rb4
-rw-r--r--lib/rubygems.rb2
-rw-r--r--test/rubygems/test_config.rb2
5 files changed, 15 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 9b662069b..5052009fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Fri May 1 01:31:19 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/extmk.rb: use RbConfig instead of Config.
+
+ * instruby.rb: ditto.
+
+ * lib/rubygems.rb: ditto.
+
+ * test/rubygems/test_config.rb: ditto.
+
Thu Apr 30 21:23:30 2009 Tanaka Akira <akr@fsij.org>
* runruby.rb: use RbConfig::CONFIG instead of Config::CONFIG.
diff --git a/ext/extmk.rb b/ext/extmk.rb
index f69b57b11..30de287cd 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -540,7 +540,7 @@ rubies = []
%w[RUBY RUBYW STATIC_RUBY].each {|n|
r = n
if r = arg_config("--"+r.downcase) || config_string(r+"_INSTALL_NAME")
- rubies << Config.expand(r+=EXEEXT)
+ rubies << RbConfig.expand(r+=EXEEXT)
$mflags << "#{n}=#{r}"
end
}
diff --git a/instruby.rb b/instruby.rb
index 4cb27848d..20ce44921 100755
--- a/instruby.rb
+++ b/instruby.rb
@@ -101,13 +101,13 @@ def parse_args(argv = ARGV)
$destdir ||= $mflags.defined?("DESTDIR")
if $extout ||= $mflags.defined?("EXTOUT")
- Config.expand($extout)
+ RbConfig.expand($extout)
end
$continue = $mflags.set?(?k)
if $installed_list ||= $mflags.defined?('INSTALLED_LIST')
- Config.expand($installed_list, RbConfig::CONFIG)
+ RbConfig.expand($installed_list, RbConfig::CONFIG)
$installed_list = open($installed_list, "ab")
$installed_list.sync = true
end
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 77930016f..3be98d3c5 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -823,7 +823,7 @@ module Gem
end
-module Config
+module RbConfig
# :stopdoc:
class << self
# Return the path to the data directory associated with the named
diff --git a/test/rubygems/test_config.rb b/test/rubygems/test_config.rb
index 4867538ac..d57bbe735 100644
--- a/test/rubygems/test_config.rb
+++ b/test/rubygems/test_config.rb
@@ -12,7 +12,7 @@ class TestConfig < RubyGemTestCase
def test_datadir
datadir = RbConfig::CONFIG['datadir']
- assert_equal "#{datadir}/xyz", Config.datadir('xyz')
+ assert_equal "#{datadir}/xyz", RbConfig.datadir('xyz')
end
end