ruby-changes:3882
From: ko1@a...
Date: Mon, 4 Feb 2008 09:03:26 +0900 (JST)
Subject: [ruby-changes:3882] matz - Ruby:r15371 (trunk): * lib/cgi.rb (CGI::QueryExtension::[]): no more transition
matz 2008-02-04 09:02:53 +0900 (Mon, 04 Feb 2008) New Revision: 15371 Modified files: trunk/ChangeLog trunk/lib/cgi.rb trunk/version.h Log: * lib/cgi.rb (CGI::QueryExtension::[]): no more transition extend(CGI::Value). a patch from <tommy AT tmtm.org> in [ruby-dev:33583]. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/version.h?r1=15371&r2=15370&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/cgi.rb?r1=15371&r2=15370&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15371&r2=15370&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 15370) +++ ChangeLog (revision 15371) @@ -1,3 +1,9 @@ +Mon Feb 4 08:59:31 2008 Yukihiro Matsumoto <matz@r...> + + * lib/cgi.rb (CGI::QueryExtension::[]): no more transition + extend(CGI::Value). a patch from <tommy AT tmtm.org> in + [ruby-dev:33583]. + Sun Feb 03 21:13:13 2008 Yusuke Endoh <mame@t...> * test/ruby/test_numeric.rb: forgot to add this (at r15360). Index: lib/cgi.rb =================================================================== --- lib/cgi.rb (revision 15370) +++ lib/cgi.rb (revision 15371) @@ -1178,29 +1178,6 @@ @multipart end - module Value # :nodoc: - def set_params(params) - @params = params - end - def [](idx, *args) - if args.size == 0 - warn "#{caller(1)[0]}:CAUTION! cgi['key'] == cgi.params['key'][0]; if want Array, use cgi.params['key']" - @params[idx] - else - super[idx,*args] - end - end - def first - warn "#{caller(1)[0]}:CAUTION! cgi['key'] == cgi.params['key'][0]; if want Array, use cgi.params['key']" - self - end - alias last first - def to_a - @params || [self] - end - alias to_ary to_a # to be rhs of multiple assignment - end - # Get the value for the parameter with a given key. # # If the parameter has multiple values, only the first will be @@ -1219,8 +1196,6 @@ end else str = if value then value.dup else "" end - str.extend(Value) - str.set_params(params) str end end Index: version.h =================================================================== --- version.h (revision 15370) +++ version.h (revision 15371) @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2008-02-02" +#define RUBY_RELEASE_DATE "2008-02-04" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20080202 +#define RUBY_RELEASE_CODE 20080204 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2008 #define RUBY_RELEASE_MONTH 2 -#define RUBY_RELEASE_DAY 2 +#define RUBY_RELEASE_DAY 4 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/