* lib/rbconfig/obsolete.rb: show the location which use Config.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-08-07 22:50:05 +00:00
parent b50fb9034e
commit 5f5e0b7191
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Sun Aug 8 07:47:29 2010 Tanaka Akira <akr@fsij.org>
* lib/rbconfig/obsolete.rb: show the location which use Config.
Sun Aug 8 07:29:55 2010 Tanaka Akira <akr@fsij.org>
* ext/pathname/pathname.c (path_fnmatch): Pathname#fnmatch and

View File

@ -1,2 +1,5 @@
warn "Use RbConfig instead of obsolete and deprecated Config."
loc = caller[0]
loc = loc[/\A.*:\d+:/] if loc
loc = "#{loc} " if loc
warn "#{loc}Use RbConfig instead of obsolete and deprecated Config."
Config = RbConfig # compatibility for ruby-1.8.4 and older.