ruby-changes:11675
From: akr <ko1@a...>
Date: Fri, 1 May 2009 01:34:17 +0900 (JST)
Subject: [ruby-changes:11675] Ruby:r23313 (trunk): * ext/extmk.rb: use RbConfig instead of Config.
akr 2009-05-01 01:34:01 +0900 (Fri, 01 May 2009) New Revision: 23313 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23313 Log: * ext/extmk.rb: use RbConfig instead of Config. * instruby.rb: ditto. * lib/rubygems.rb: ditto. * test/rubygems/test_config.rb: ditto. Modified files: trunk/ChangeLog trunk/ext/extmk.rb trunk/instruby.rb trunk/lib/rubygems.rb trunk/test/rubygems/test_config.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 23312) +++ ChangeLog (revision 23313) @@ -1,3 +1,13 @@ +Fri May 1 01:31:19 2009 Tanaka Akira <akr@f...> + + * 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@f...> * runruby.rb: use RbConfig::CONFIG instead of Config::CONFIG. Index: lib/rubygems.rb =================================================================== --- lib/rubygems.rb (revision 23312) +++ lib/rubygems.rb (revision 23313) @@ -823,7 +823,7 @@ end -module Config +module RbConfig # :stopdoc: class << self # Return the path to the data directory associated with the named Index: ext/extmk.rb =================================================================== --- ext/extmk.rb (revision 23312) +++ ext/extmk.rb (revision 23313) @@ -540,7 +540,7 @@ %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 } Index: instruby.rb =================================================================== --- instruby.rb (revision 23312) +++ instruby.rb (revision 23313) @@ -101,13 +101,13 @@ $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 Index: test/rubygems/test_config.rb =================================================================== --- test/rubygems/test_config.rb (revision 23312) +++ test/rubygems/test_config.rb (revision 23313) @@ -12,7 +12,7 @@ def test_datadir datadir = RbConfig::CONFIG['datadir'] - assert_equal "#{datadir}/xyz", Config.datadir('xyz') + assert_equal "#{datadir}/xyz", RbConfig.datadir('xyz') end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/