From: usa@... Date: 2016-03-29T04:50:07+00:00 Subject: [ruby-core:74646] [Ruby trunk Bug#12215] URI::HTTP.new example is incorrect Issue #12215 has been updated by Usaku NAKAMURA. Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED ---------------------------------------- Bug #12215: URI::HTTP.new example is incorrect https://bugs.ruby-lang.org/issues/12215#change-57773 * Author: Matt Dickenson * Status: Closed * Priority: Normal * Assignee: * ruby -v: 2.3.0-dev * Backport: 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED ---------------------------------------- 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: