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

ruby-changes:20904

From: drbrain <ko1@a...>
Date: Sat, 13 Aug 2011 03:51:43 +0900 (JST)
Subject: [ruby-changes:20904] drbrain:r32953 (trunk): * lib/uri/common.rb: Fix documentation of URI::Parser.new. Patch by

drbrain	2011-08-13 03:41:57 +0900 (Sat, 13 Aug 2011)

  New Revision: 32953

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

  Log:
    * lib/uri/common.rb:  Fix documentation of URI::Parser.new.  Patch by
      Steve Klabnik.  [Ruby 1.9 - Bug #5177]

  Modified files:
    trunk/ChangeLog
    trunk/lib/uri/common.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32952)
+++ ChangeLog	(revision 32953)
@@ -1,3 +1,8 @@
+Sat Aug 13 03:41:37 2011  Eric Hodel  <drbrain@s...>
+
+	* 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@s...>
 
 	* ext/digest/digest.c:  Add documentation for the Digest module.  Patch
Index: lib/uri/common.rb
===================================================================
--- lib/uri/common.rb	(revision 32952)
+++ lib/uri/common.rb	(revision 32953)
@@ -78,15 +78,15 @@
     #
     # 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
     #

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

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