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, 8 insertions, 0 deletions
diff --git a/lib/cgi-lib.rb b/lib/cgi-lib.rb index bc780ffc4..33c732660 100644 --- a/lib/cgi-lib.rb +++ b/lib/cgi-lib.rb @@ -1,3 +1,5 @@ +warn "Warning: cgi-lib is deprecated after Ruby 1.8.1; use cgi instead" + =begin = simple CGI support library diff --git a/lib/getopts.rb b/lib/getopts.rb index 34fb0d644..1cd6d2f48 100644 --- a/lib/getopts.rb +++ b/lib/getopts.rb @@ -15,6 +15,8 @@ # rewritten by Akinori MUSHA <knu@ruby-lang.org> # +warn "Warning: 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 435d6f972..c47fc1f6c 100644 --- a/lib/importenv.rb +++ b/lib/importenv.rb @@ -7,6 +7,8 @@ # $USER = "matz" # p ENV["USER"] +warn "Warning: 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 eval <<EOS diff --git a/lib/parsearg.rb b/lib/parsearg.rb index d5f3c9638..9d58be99f 100644 --- a/lib/parsearg.rb +++ b/lib/parsearg.rb @@ -10,6 +10,8 @@ # # +warn "Warning: parsearg is deprecated after Ruby 1.8.1; use optparse instead" + $RCS_ID=%q$Header$ require "getopts" |
