From: naruse@... Date: 2016-04-12T05:27:29+00:00 Subject: [ruby-core:74885] [Ruby trunk Bug#12215] URI::HTTP.new example is incorrect Issue #12215 has been updated by Yui NARUSE. Backport changed from 2.1: DONE, 2.2: DONE, 2.3: REQUIRED to 2.1: DONE, 2.2: DONE, 2.3: DONE ruby_2_3 r54550 merged revision(s) 54257. ---------------------------------------- Bug #12215: URI::HTTP.new example is incorrect https://bugs.ruby-lang.org/issues/12215#change-58012 * Author: Matt Dickenson * Status: Closed * Priority: Normal * Assignee: * ruby -v: 2.3.0-dev * Backport: 2.1: DONE, 2.2: DONE, 2.3: DONE ---------------------------------------- On this page (http://ruby-doc.org/stdlib-2.3.0/libdoc/uri/rdoc/URI/HTTP.html) the example for URI::HTTP.new will result in an error (ArgumentError: wrong number of arguments (`given 7, expected 9..11)`). A working example (2.3.0-dev) is: `uri = URI::HTTP.new('http', nil, "www.example.com", nil, nil, "/path", nil, "query", 'fragment')`. -- https://bugs.ruby-lang.org/ Unsubscribe: