diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cgi-lib.rb | 2 | ||||
-rw-r--r-- | lib/getopts.rb | 2 | ||||
-rw-r--r-- | lib/importenv.rb | 2 | ||||
-rw-r--r-- | lib/parsearg.rb | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/cgi-lib.rb b/lib/cgi-lib.rb index 33c732660e..d6b60d66cc 100644 --- a/lib/cgi-lib.rb +++ b/lib/cgi-lib.rb @@ -1,4 +1,4 @@ -warn "Warning: cgi-lib is deprecated after Ruby 1.8.1; use cgi instead" +warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: cgi-lib is deprecated after Ruby 1.8.1; use cgi instead" =begin diff --git a/lib/getopts.rb b/lib/getopts.rb index 1cd6d2f48e..924ba5b249 100644 --- a/lib/getopts.rb +++ b/lib/getopts.rb @@ -15,7 +15,7 @@ # rewritten by Akinori MUSHA <knu@ruby-lang.org> # -warn "Warning: getopts is deprecated after Ruby 1.8.1; use optparse instead" +warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: getopts is deprecated after Ruby 1.8.1; use optparse instead" $RCS_ID=%q$Header$ 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 diff --git a/lib/parsearg.rb b/lib/parsearg.rb index 9d58be99f6..9c67aca43e 100644 --- a/lib/parsearg.rb +++ b/lib/parsearg.rb @@ -10,7 +10,7 @@ # # -warn "Warning: parsearg is deprecated after Ruby 1.8.1; use optparse instead" +warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: parsearg is deprecated after Ruby 1.8.1; use optparse instead" $RCS_ID=%q$Header$ |