aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-07 22:50:05 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-07 22:50:05 +0000
commit5f5e0b7191f0ecf00f0c1718c9562fee6112f04a (patch)
tree0e5a5167f328c46c039d951b210a07c68ce73d2c
parentb50fb9034e8efd45319ce6ac3c7984bf98b548de (diff)
downloadruby-5f5e0b7191f0ecf00f0c1718c9562fee6112f04a.tar.gz
* 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
-rw-r--r--ChangeLog4
-rw-r--r--lib/rbconfig/obsolete.rb5
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ee1ee791e0..c5ee7a8d81 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/lib/rbconfig/obsolete.rb b/lib/rbconfig/obsolete.rb
index fcc7151ad2..eae9155af6 100644
--- a/lib/rbconfig/obsolete.rb
+++ b/lib/rbconfig/obsolete.rb
@@ -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.