aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorgsinclair <gsinclair@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-18 15:27:06 +0000
committergsinclair <gsinclair@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-18 15:27:06 +0000
commit1399c1bca04aa992ef2a2b6bda70298f37892823 (patch)
tree6a614a8b8316c341e4818d3752fc8be2ea64168a /lib
parent847fd91e323d054121600c7a8568f0c734102fff (diff)
downloadruby-1399c1bca04aa992ef2a2b6bda70298f37892823.tar.gz
* lib/cgi-lib.rb: deprecated after 1.8.1
* lib/getopts.rb: ditto * lib/importenv.rb: ditto * lib/parsearg.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/cgi-lib.rb2
-rw-r--r--lib/getopts.rb2
-rw-r--r--lib/importenv.rb2
-rw-r--r--lib/parsearg.rb2
4 files changed, 8 insertions, 0 deletions
diff --git a/lib/cgi-lib.rb b/lib/cgi-lib.rb
index bc780ffc4e..33c732660e 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 34fb0d6442..1cd6d2f48e 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 435d6f972a..c47fc1f6c5 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 d5f3c9638d..9d58be99f6 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"