From 2b222b9b1773d8ae574c4d39b312b83615ecb700 Mon Sep 17 00:00:00 2001 From: xibbar Date: Tue, 20 Apr 2010 03:39:34 +0000 Subject: * lib/cgi/{core, util}.rb (RFC822_DAYS, RFC822_MONTHS): move the constant because used only util.rb. [Bug #2704] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/cgi/core.rb | 6 ------ lib/cgi/util.rb | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb index f3e2300414..698c7ce344 100644 --- a/lib/cgi/core.rb +++ b/lib/cgi/core.rb @@ -40,12 +40,6 @@ class CGI "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 diff --git a/lib/cgi/util.rb b/lib/cgi/util.rb index 42f1336e9f..7be3e92577 100644 --- a/lib/cgi/util.rb +++ b/lib/cgi/util.rb @@ -141,6 +141,12 @@ class CGI 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) -- cgit v1.2.3