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 --- ChangeLog | 11 ++++++++++- lib/cgi-lib.rb | 2 +- lib/getopts.rb | 2 +- lib/importenv.rb | 2 +- lib/parsearg.rb | 2 +- test/rss/test_content.rb | 2 +- test/rss/test_dublincore.rb | 2 +- test/rss/test_syndication.rb | 2 +- test/rss/test_trackback.rb | 2 +- 9 files changed, 18 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1fb274725e..fadedefe75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,15 @@ +Wed Feb 25 20:44:45 2004 Nobuyoshi Nakada + + * 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. + Tue Feb 24 18:42:03 Hirokazu Yamamoto - * dir.c (glob_helper): '**/' should not match leading period + * dir.c (glob_helper): '**/' should not match leading period unless File::FNM_DOTMATCH is set. (like '*/') [ruby-dev:23014] Tue Feb 24 18:03:14 2004 Nobuyoshi Nakada 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 # -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$ diff --git a/test/rss/test_content.rb b/test/rss/test_content.rb index b087250036..aa532eab62 100644 --- a/test/rss/test_content.rb +++ b/test/rss/test_content.rb @@ -1,7 +1,7 @@ # -*- tab-width: 2 -*- vim: ts=2 require "test/unit" -require "cgi-lib" +require "cgi" require "rexml/document" require "rss/1.0" diff --git a/test/rss/test_dublincore.rb b/test/rss/test_dublincore.rb index 16c458f537..0f900545af 100644 --- a/test/rss/test_dublincore.rb +++ b/test/rss/test_dublincore.rb @@ -1,7 +1,7 @@ # -*- tab-width: 2 -*- vim: ts=2 require "test/unit" -require "cgi-lib" +require "cgi" require "rexml/document" require "rss/1.0" diff --git a/test/rss/test_syndication.rb b/test/rss/test_syndication.rb index 1eb62e052b..22fa30c2de 100644 --- a/test/rss/test_syndication.rb +++ b/test/rss/test_syndication.rb @@ -1,7 +1,7 @@ # -*- tab-width: 2 -*- vim: ts=2 require "test/unit" -require "cgi-lib" +require "cgi" require "rexml/document" require "rss/1.0" diff --git a/test/rss/test_trackback.rb b/test/rss/test_trackback.rb index 936f3683f0..56a5bf4315 100644 --- a/test/rss/test_trackback.rb +++ b/test/rss/test_trackback.rb @@ -1,7 +1,7 @@ # -*- tab-width: 2 -*- vim: ts=2 require "test/unit" -require "cgi-lib" +require "cgi" require "rexml/document" require "rss/1.0" -- cgit v1.2.3