diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-07 08:40:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-07 08:40:32 +0000 |
commit | df96e4184556346d821541d847f9fca7b53e29a5 (patch) | |
tree | 193fa663dcd36b603dc180a07f578fcab4613efb | |
parent | e4e9758aa5a096ccf7679dace5ef52a00b959a92 (diff) |
* mkconfig.rb, lib/rbconfig/obsolete.rb: warn obsolete and
deprecated Config.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/rbconfig/obsolete.rb | 2 | ||||
-rwxr-xr-x | tool/mkconfig.rb | 2 |
3 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Aug 7 17:40:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * mkconfig.rb, lib/rbconfig/obsolete.rb: warn obsolete and + deprecated Config. + Sat Aug 7 17:18:34 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> * ext/extmk.rb (extract_makefile): follow the change of diff --git a/lib/rbconfig/obsolete.rb b/lib/rbconfig/obsolete.rb new file mode 100644 index 0000000000..fcc7151ad2 --- /dev/null +++ b/lib/rbconfig/obsolete.rb @@ -0,0 +1,2 @@ +warn "Use RbConfig instead of obsolete and deprecated Config." +Config = RbConfig # compatibility for ruby-1.8.4 and older. diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb index ac24821829..07d6982701 100755 --- a/tool/mkconfig.rb +++ b/tool/mkconfig.rb @@ -213,7 +213,7 @@ print <<EOS ) 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 |