summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-20 03:39:34 +0000
committerxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-20 03:39:34 +0000
commit2b222b9b1773d8ae574c4d39b312b83615ecb700 (patch)
treed3bf44e69a5db4add67a6783e080a0ce7a363a31 /lib
parente63df5319855c1b4ebba0498a466c3806dedba99 (diff)
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/cgi/core.rb6
-rw-r--r--lib/cgi/util.rb6
2 files changed, 6 insertions, 6 deletions
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)