diff options
Diffstat (limited to 'lib/rbconfig')
-rw-r--r-- | lib/rbconfig/obsolete.rb | 5 |
1 files changed, 4 insertions, 1 deletions
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. |