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

ruby-changes:15513

From: xibbar <ko1@a...>
Date: Tue, 20 Apr 2010 12:39:53 +0900 (JST)
Subject: [ruby-changes:15513] Ruby:r27415 (trunk): * lib/cgi/{core, util}.rb (RFC822_DAYS, RFC822_MONTHS):

xibbar	2010-04-20 12:39:34 +0900 (Tue, 20 Apr 2010)

  New Revision: 27415

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

  Log:
    * lib/cgi/{core, util}.rb (RFC822_DAYS, RFC822_MONTHS):
      move the constant because used only util.rb. [Bug #2704]

  Modified files:
    trunk/ChangeLog
    trunk/lib/cgi/core.rb
    trunk/lib/cgi/util.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 27414)
+++ ChangeLog	(revision 27415)
@@ -1,3 +1,8 @@
+Tue Apr 20 12:34:23 2010  Takeyuki FUJIOKA  <xibbar@r...>
+
+	* lib/cgi/{core, util}.rb (RFC822_DAYS, RFC822_MONTHS):
+	  move the constant because used only util.rb.
+
 Tue Apr 20 12:24:57 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (lex_state_e, IS_END, IS_SPCARG, parser_yylex): separate
Index: lib/cgi/util.rb
===================================================================
--- lib/cgi/util.rb	(revision 27414)
+++ lib/cgi/util.rb	(revision 27415)
@@ -141,6 +141,12 @@
     unescapeElement(str)
   end
 
+  # Abbreviated day-of-week names specified by RFC 822
+  RFC822_DAYS = %w[ Sun Mon Tue Wed Thu Fri Sat ]
+
+  # Abbreviated month names specified by RFC 822
+  RFC822_MONTHS = %w[ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ]
+
   # Format a +Time+ object as a String using the format specified by RFC 1123.
   #
   #   CGI::rfc1123_date(Time.now)
Index: lib/cgi/core.rb
===================================================================
--- lib/cgi/core.rb	(revision 27414)
+++ lib/cgi/core.rb	(revision 27415)
@@ -40,12 +40,6 @@
     "VARIANT_ALSO_VARIES" => "506 Variant Also Negotiates"
   }
 
-  # Abbreviated day-of-week names specified by RFC 822
-  RFC822_DAYS = %w[ Sun Mon Tue Wed Thu Fri Sat ]
-
-  # Abbreviated month names specified by RFC 822
-  RFC822_MONTHS = %w[ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ]
-
   # :startdoc:
 
   def env_table

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

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