summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/uri/common.rb12
2 files changed, 11 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index c7f5666777..52d38dbd15 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Aug 13 03:41:37 2011 Eric Hodel <drbrain@segment7.net>
+
+ * lib/uri/common.rb: Fix documentation of URI::Parser.new. Patch by
+ Steve Klabnik. [Ruby 1.9 - Bug #5177]
+
Sat Aug 13 02:19:57 2011 Eric Hodel <drbrain@segment7.net>
* ext/digest/digest.c: Add documentation for the Digest module. Patch
diff --git a/lib/uri/common.rb b/lib/uri/common.rb
index f23fe98d4f..abe127f54c 100644
--- a/lib/uri/common.rb
+++ b/lib/uri/common.rb
@@ -78,15 +78,15 @@ module URI
#
# You can use the following keys:
#
- # * <tt>:ESCAPED</tt> (URI::PATTERN::ESCAPED in default)
- # * <tt>:UNRESERVED</tt> (URI::PATTERN::UNRESERVED in default)
- # * <tt>:DOMLABEL</tt> (URI::PATTERN::DOMLABEL in default)
- # * <tt>:TOPLABEL</tt> (URI::PATTERN::TOPLABEL in default)
- # * <tt>:HOSTNAME</tt> (URI::PATTERN::HOSTNAME in default)
+ # * :ESCAPED (URI::PATTERN::ESCAPED in default)
+ # * :UNRESERVED (URI::PATTERN::UNRESERVED in default)
+ # * :DOMLABEL (URI::PATTERN::DOMLABEL in default)
+ # * :TOPLABEL (URI::PATTERN::TOPLABEL in default)
+ # * :HOSTNAME (URI::PATTERN::HOSTNAME in default)
#
# == Examples
#
- # p = URI::Parser.new(:ESCPAED => "(?:%[a-fA-F0-9]{2}|%u[a-fA-F0-9]{4})"
+ # p = URI::Parser.new(:ESCAPED => "(?:%[a-fA-F0-9]{2}|%u[a-fA-F0-9]{4})"
# u = p.parse("http://example.jp/%uABCD") #=> #<URI::HTTP:0xb78cf4f8 URL:http://example.jp/%uABCD>
# URI.parse(u.to_s) #=> raises URI::InvalidURIError
#