[前][次][番号順一覧][スレッド一覧]

ruby-changes:16905

From: nobu <ko1@a...>
Date: Sat, 7 Aug 2010 17:40:50 +0900 (JST)
Subject: [ruby-changes:16905] Ruby:r28900 (ruby_1_8, trunk): * mkconfig.rb, lib/rbconfig/obsolete.rb: warn obsolete and

nobu	2010-08-07 17:40:32 +0900 (Sat, 07 Aug 2010)

  New Revision: 28900

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28900

  Log:
    * mkconfig.rb, lib/rbconfig/obsolete.rb: warn obsolete and
      deprecated Config.

  Added directories:
    branches/ruby_1_8/lib/rbconfig/
  Added files:
    branches/ruby_1_8/lib/rbconfig/obsolete.rb
    trunk/lib/rbconfig/obsolete.rb
  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/mkconfig.rb
    trunk/ChangeLog
    trunk/tool/mkconfig.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 28899)
+++ ChangeLog	(revision 28900)
@@ -1,3 +1,8 @@
+Sat Aug  7 17:40:24 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* mkconfig.rb, lib/rbconfig/obsolete.rb: warn obsolete and
+	  deprecated Config.
+
 Sat Aug  7 17:18:34 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* ext/extmk.rb (extract_makefile): follow the change of
Index: lib/rbconfig/obsolete.rb
===================================================================
--- lib/rbconfig/obsolete.rb	(revision 0)
+++ lib/rbconfig/obsolete.rb	(revision 28900)
@@ -0,0 +1,2 @@
+warn "Use RbConfig instead of obsolete and deprecated Config."
+Config = RbConfig # compatibility for ruby-1.8.4 and older.

Property changes on: lib/rbconfig/obsolete.rb
___________________________________________________________________
Added: svn:eol-style
   + LF

Index: tool/mkconfig.rb
===================================================================
--- tool/mkconfig.rb	(revision 28899)
+++ tool/mkconfig.rb	(revision 28900)
@@ -213,7 +213,7 @@
     )
   end
 end
-Config = RbConfig # compatibility for ruby-1.8.4 and older.
+autoload :Config, "rbconfig/obsolete.rb" # compatibility for ruby-1.8.4 and older.
 CROSS_COMPILING = nil unless defined? CROSS_COMPILING
 EOS
 
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 28899)
+++ ruby_1_8/ChangeLog	(revision 28900)
@@ -1,3 +1,8 @@
+Sat Aug  7 17:40:24 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* mkconfig.rb, lib/rbconfig/obsolete.rb: warn obsolete and
+	  deprecated Config.
+
 Thu Aug  5 11:55:17 2010  NAKAMURA Usaku  <usa@r...>
 
 	* ext/socket/socket.c: use _() macro instead of __P(), because the
Index: ruby_1_8/mkconfig.rb
===================================================================
--- ruby_1_8/mkconfig.rb	(revision 28899)
+++ ruby_1_8/mkconfig.rb	(revision 28900)
@@ -27,7 +27,7 @@
 # This file was created by #{mkconfig} when ruby was built.  Any
 # changes made to this file will be lost the next time ruby is built.
 
-module Config
+module RbConfig
   RUBY_VERSION == "#{version}" or
     raise "ruby lib version (#{version}) doesn't match executable version (\#{RUBY_VERSION})"
 
@@ -177,7 +177,7 @@
     Config::expand(val)
   end
 end
-RbConfig = Config # compatibility for ruby-1.9
+autoload :Config, "rbconfig/obsolete.rb" # compatibility for ruby-1.8.4 and older.
 CROSS_COMPILING = nil unless defined? CROSS_COMPILING
 EOS
 
Index: ruby_1_8/lib/rbconfig/obsolete.rb
===================================================================
--- ruby_1_8/lib/rbconfig/obsolete.rb	(revision 0)
+++ ruby_1_8/lib/rbconfig/obsolete.rb	(revision 28900)
@@ -0,0 +1,2 @@
+warn "Use RbConfig instead of obsolete and deprecated Config."
+Config = RbConfig # compatibility for ruby-1.8.4 and older.

Property changes on: ruby_1_8/lib/rbconfig/obsolete.rb
___________________________________________________________________
Added: svn:eol-style
   + LF


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]