[前][次][番号順一覧][スレッド一覧]

ruby-changes:16280

From: shyouhei <ko1@a...>
Date: Thu, 10 Jun 2010 14:24:03 +0900 (JST)
Subject: [ruby-changes:16280] Ruby:r28248 (ruby_1_8_7): * lib/webrick/httpstatus.rb (WEBrick::HTTPStatus::Status::initialize):

shyouhei	2010-06-10 14:23:49 +0900 (Thu, 10 Jun 2010)

  New Revision: 28248

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28248

  Log:
    * lib/webrick/httpstatus.rb (WEBrick::HTTPStatus::Status::initialize):
      accept 0 or more arguments. [ruby-core:28692]

  Modified files:
    branches/ruby_1_8_7/ChangeLog
    branches/ruby_1_8_7/lib/webrick/httpstatus.rb
    branches/ruby_1_8_7/version.h

Index: ruby_1_8_7/ChangeLog
===================================================================
--- ruby_1_8_7/ChangeLog	(revision 28247)
+++ ruby_1_8_7/ChangeLog	(revision 28248)
@@ -1,3 +1,8 @@
+Thu Jun 10 14:22:09 2010  URABE Shyouhei  <shyouhei@r...>
+
+	* lib/webrick/httpstatus.rb (WEBrick::HTTPStatus::Status::initialize):
+	  accept 0 or more arguments. [ruby-core:28692]
+
 Thu Jun 10 13:37:35 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* eval.c (rb_load): initialize orig_func.   [ruby-core:27296]
Index: ruby_1_8_7/version.h
===================================================================
--- ruby_1_8_7/version.h	(revision 28247)
+++ ruby_1_8_7/version.h	(revision 28248)
@@ -2,7 +2,7 @@
 #define RUBY_RELEASE_DATE "2010-06-10"
 #define RUBY_VERSION_CODE 187
 #define RUBY_RELEASE_CODE 20100610
-#define RUBY_PATCHLEVEL 292
+#define RUBY_PATCHLEVEL 293
 
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 8
Index: ruby_1_8_7/lib/webrick/httpstatus.rb
===================================================================
--- ruby_1_8_7/lib/webrick/httpstatus.rb	(revision 28247)
+++ ruby_1_8_7/lib/webrick/httpstatus.rb	(revision 28248)
@@ -13,8 +13,9 @@
   module HTTPStatus
 
     class Status      < StandardError
-      def initialize(message=self.class, *rest)
-        super(AccessLog.escape(message), *rest)
+      def initialize(*args)
+        args[0] = AccessLog.escape(args[0]) unless args.empty?
+        super(*args)
       end
       class << self
         attr_reader :code, :reason_phrase

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]