Skip to content

Commit

Permalink
* lib/cgi-lib.rb, lib/getopts.rb, lib/importenv.rb, lib/parsearg.rb:
Browse files Browse the repository at this point in the history
  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
  • Loading branch information
nobu committed Feb 25, 2004
1 parent 9418d16 commit 8f2057e
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 9 deletions.
11 changes: 10 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Wed Feb 25 20:44:45 2004 Nobuyoshi Nakada <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion lib/cgi-lib.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/getopts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# rewritten by Akinori MUSHA <[email protected]>
#

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$

Expand Down
2 changes: 1 addition & 1 deletion lib/importenv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/parsearg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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$

Expand Down
2 changes: 1 addition & 1 deletion test/rss/test_content.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion test/rss/test_dublincore.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion test/rss/test_syndication.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion test/rss/test_trackback.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 8f2057e

Please sign in to comment.