ruby-changes:16915
From: akr <ko1@a...>
Date: Sun, 8 Aug 2010 07:50:18 +0900 (JST)
Subject: [ruby-changes:16915] Ruby:r28911 (trunk): * lib/rbconfig/obsolete.rb: show the location which use Config.
akr 2010-08-08 07:50:05 +0900 (Sun, 08 Aug 2010) New Revision: 28911 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28911 Log: * lib/rbconfig/obsolete.rb: show the location which use Config. Modified files: trunk/ChangeLog trunk/lib/rbconfig/obsolete.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 28910) +++ ChangeLog (revision 28911) @@ -1,3 +1,7 @@ +Sun Aug 8 07:47:29 2010 Tanaka Akira <akr@f...> + + * lib/rbconfig/obsolete.rb: show the location which use Config. + Sun Aug 8 07:29:55 2010 Tanaka Akira <akr@f...> * ext/pathname/pathname.c (path_fnmatch): Pathname#fnmatch and Index: lib/rbconfig/obsolete.rb =================================================================== --- lib/rbconfig/obsolete.rb (revision 28910) +++ lib/rbconfig/obsolete.rb (revision 28911) @@ -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. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/