[ruby-cvs:55816] naruse:r48666 (trunk): * lib/uri/generic.rb (URI::Generic.build):

naruse at ruby-lang.org naruse at ruby-lang.org
Tue Dec 2 02:36:56 JST 2014


naruse	2014-12-02 02:36:54 +0900 (Tue, 02 Dec 2014)

  New Revision: 48666

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

  Log:
    * lib/uri/generic.rb (URI::Generic.build):
      use hostname= to detect and wrap IPv6 hosts.
      Build is accepting URI components and users may not expect
      that a host component needs to be wrapped with square brackets
      since it's not providing a URI.
      Note: initialize with arg_check => true does not wrap IPv6 hosts.
      by Joe Rafaniello <jrafanie at redhat.com>
      https://github.com/ruby/ruby/pull/765 fix GH-765
    
    * test/uri/test_generic.rb: Add more tests

  Modified files:
    trunk/ChangeLog
    trunk/lib/uri/generic.rb
    trunk/test/uri/test_generic.rb


More information about the ruby-cvs mailing list