[#2367] Standard libraries — Dave Thomas <dave@...>

From ruby-dev summary:

60 messages 2004/02/11

[#2397] PATCH: deprecate cgi-lib, getopts, importenv, parsearg from standard library — Gavin Sinclair <gsinclair@...>

Index: cgi-lib.rb

15 messages 2004/02/12

[#2465] PATCH: OpenStruct#initialize to yield self — Gavin Sinclair <gsinclair@...>

This is a common approach I use to object initialization; I don't know

24 messages 2004/02/19

PATCH: deprecate cgi-lib, getopts, importenv, parsearg from standard library

From: Gavin Sinclair <gsinclair@...>
Date: 2004-02-12 12:34:04 UTC
List: ruby-core #2397
Index: cgi-lib.rb
===================================================================
RCS file: /src/ruby/lib/cgi-lib.rb,v
retrieving revision 1.6
diff -u -r1.6 cgi-lib.rb
--- cgi-lib.rb  24 Dec 2002 14:42:38 -0000      1.6
+++ cgi-lib.rb  12 Feb 2004 12:32:30 -0000
@@ -1,3 +1,5 @@
+warn "Warning: cgi-lib.rb is deprecated after Ruby 1.8.1"
+
 =begin

 = simple CGI support library
Index: getopts.rb
===================================================================
RCS file: /src/ruby/lib/getopts.rb,v
retrieving revision 1.8
diff -u -r1.8 getopts.rb
--- getopts.rb  3 Nov 2002 19:03:46 -0000       1.8
+++ getopts.rb  12 Feb 2004 12:32:30 -0000
@@ -15,6 +15,8 @@
 # rewritten by Akinori MUSHA <knu@ruby-lang.org>
 #

+warn "Warning: getopts.rb is deprecated after Ruby 1.8.1"
+
 $RCS_ID=%q$Header: /src/ruby/lib/getopts.rb,v 1.8 2002/11/03 19:03:46 knu Exp $


Index: importenv.rb
===================================================================
RCS file: /src/ruby/lib/importenv.rb,v
retrieving revision 1.5
diff -u -r1.5 importenv.rb
--- importenv.rb        26 Feb 2001 05:29:04 -0000      1.5
+++ importenv.rb        12 Feb 2004 12:32:30 -0000
@@ -7,6 +7,8 @@
 #  $USER = "matz"
 #  p ENV["USER"]

+warn "Warning: importenv.rb is deprecated after Ruby 1.8.1"
+
 for k,v in ENV
   next unless /^[a-zA-Z][_a-zA-Z0-9]*/ =~ k
   eval <<EOS
Index: parsearg.rb
===================================================================
RCS file: /src/ruby/lib/parsearg.rb,v
retrieving revision 1.2
diff -u -r1.2 parsearg.rb
--- parsearg.rb 29 Jul 2002 06:14:06 -0000      1.2
+++ parsearg.rb 12 Feb 2004 12:32:30 -0000
@@ -10,6 +10,8 @@
 #
 #

+warn "Warning: parsearg.rb is deprecated after Ruby 1.8.1"
+
 $RCS_ID=%q$Header: /src/ruby/lib/parsearg.rb,v 1.2 2002/07/29 06:14:06 matz Exp $

 require "getopts"


In This Thread

Prev Next