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

ruby-changes:34647

From: naruse <ko1@a...>
Date: Mon, 7 Jul 2014 11:07:11 +0900 (JST)
Subject: [ruby-changes:34647] naruse:r46730 (trunk): * tool/mkconfig.rb: remove not to require rbconfig/obsolete.rb.

naruse	2014-07-07 11:07:01 +0900 (Mon, 07 Jul 2014)

  New Revision: 46730

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

  Log:
    * tool/mkconfig.rb: remove not to require rbconfig/obsolete.rb.
    
    * lib/rbconfig/obsolete.rb: removed.

  Removed files:
    trunk/lib/rbconfig/obsolete.rb
  Modified files:
    trunk/ChangeLog
    trunk/tool/mkconfig.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46729)
+++ ChangeLog	(revision 46730)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Jul  7 11:02:55 2014  NARUSE, Yui  <naruse@r...>
+
+	* tool/mkconfig.rb: remove not to require rbconfig/obsolete.rb.
+
+	* lib/rbconfig/obsolete.rb: removed.
+
 Mon Jul  7 10:52:03 2014  Koichi Sasada  <ko1@a...>
 
 	* parse.y: do not use rb_gc_resurrect(), but create a new dynamic
Index: lib/rbconfig/obsolete.rb
===================================================================
--- lib/rbconfig/obsolete.rb	(revision 46729)
+++ lib/rbconfig/obsolete.rb	(revision 46730)
@@ -1,38 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/lib/rbconfig/obsolete.rb#L0
-module ::RbConfig
-  module Obsolete
-  end
-  class << Obsolete
-    def _warn_
-      loc, = caller_locations(2, 1)
-      loc = "#{loc}: " if loc
-      warn "#{loc}Use RbConfig instead of obsolete and deprecated Config."
-      self
-    end
-
-    def const_missing(name)
-      _warn_
-      ::RbConfig.const_get(name)
-    end
-
-    def method_missing(*args, &block)
-      _warn_
-      rbconfig = ::RbConfig
-      result = rbconfig.__send__(*args, &block)
-      result = rbconfig if rbconfig.equal?(result)
-      result
-    end
-
-    def respond_to_missing?(*args, &block)
-      _warn_
-      ::RbConfig.send(:respond_to_missing?, *args, &block)
-    end
-  end
-end
-
-::Config = ::RbConfig::Obsolete._warn_
-=begin
-def Object.const_missing(name)
-  return super unless name == :Config
-  ::RbConfig::Obsolete._warn_
-end
-=end
Index: tool/mkconfig.rb
===================================================================
--- tool/mkconfig.rb	(revision 46729)
+++ tool/mkconfig.rb	(revision 46730)
@@ -267,7 +267,6 @@ print <<EOS https://github.com/ruby/ruby/blob/trunk/tool/mkconfig.rb#L267
     )
   end
 end
-autoload :Config, "rbconfig/obsolete.rb" # compatibility for ruby-1.8.4 and older.
 CROSS_COMPILING = nil unless defined? CROSS_COMPILING
 EOS
 

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

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