From 8f2057e33d1c745a4e1636a6cbe4196ee798cc1a Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 25 Feb 2004 11:44:58 +0000 Subject: * lib/cgi-lib.rb, lib/getopts.rb, lib/importenv.rb, lib/parsearg.rb: warn with caller position. * test/rss/test_content.rb, test/rss/test_dublincore.rb, test/rss/test_syndication.rb, test/rss/test_trackback.rb: use cgi instead of cgi-lib. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/importenv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/importenv.rb') diff --git a/lib/importenv.rb b/lib/importenv.rb index c47fc1f6c5..8e1ba33b1d 100644 --- a/lib/importenv.rb +++ b/lib/importenv.rb @@ -7,7 +7,7 @@ # $USER = "matz" # p ENV["USER"] -warn "Warning: importenv is deprecated after Ruby 1.8.1 (no replacement)" +warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: importenv is deprecated after Ruby 1.8.1 (no replacement)" for k,v in ENV next unless /^[a-zA-Z][_a-zA-Z0-9]*/ =~ k -- cgit v1.2.3