summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-26 11:18:00 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-26 11:18:00 +0000
commitb097efb28a91c4165e86cbe600ceb1506aa07a6d (patch)
tree67e192f8e35c1e46b0feca469d87068537bdf39e /lib
parent2c85cd02eb4fd0036e734a4c2351c1b79087edd8 (diff)
downloadruby-b097efb28a91c4165e86cbe600ceb1506aa07a6d.tar.gz
ruby-b097efb28a91c4165e86cbe600ceb1506aa07a6d.tar.xz
ruby-b097efb28a91c4165e86cbe600ceb1506aa07a6d.zip
* lib/rake.rb: use RbConfig::CONFIG instead of Config::CONFIG.
* lib/rbconfig/datadir.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rwxr-xr-xlib/rake.rb2
-rw-r--r--lib/rbconfig/datadir.rb8
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/rake.rb b/lib/rake.rb
index 9a131e6d8..c288e80b0 100755
--- a/lib/rake.rb
+++ b/lib/rake.rb
@@ -932,7 +932,7 @@ end
# added to the FileUtils utility functions.
#
module FileUtils
- RUBY = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']).
+ RUBY = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name']).
sub(/.*\s.*/m, '"\&"')
OPT_TABLE['sh'] = %w(noop verbose)
diff --git a/lib/rbconfig/datadir.rb b/lib/rbconfig/datadir.rb
index d5493b3b0..74c014e0a 100644
--- a/lib/rbconfig/datadir.rb
+++ b/lib/rbconfig/datadir.rb
@@ -5,17 +5,17 @@
#++
-module Config
+module RbConfig
# Only define datadir if it doesn't already exist.
- unless Config.respond_to?(:datadir)
+ unless RbConfig.respond_to?(:datadir)
# Return the path to the data directory associated with the given
# package name. Normally this is just
- # "#{Config::CONFIG['datadir']}/#{package_name}", but may be
+ # "#{RbConfig::CONFIG['datadir']}/#{package_name}", but may be
# modified by packages like RubyGems to handle versioned data
# directories.
- def Config.datadir(package_name)
+ def RbConfig.datadir(package_name)
File.join(CONFIG['datadir'], package_name)
end