From: shevegen@... Date: 2016-03-24T23:25:32+00:00 Subject: [ruby-core:74541] [Ruby trunk Bug#12215] URI::HTTP.new example is incorrect Issue #12215 has been updated by Robert A. Heiler. You are right. ` uri = URI::HTTP.new('http', nil, "www.example.com", nil, "/path", "query", 'fragment')` Triggers the error. Should be changed. ---------------------------------------- Bug #12215: URI::HTTP.new example is incorrect https://bugs.ruby-lang.org/issues/12215#change-57665 * Author: Matt Dickenson * Status: Open * Priority: Normal * Assignee: * ruby -v: 2.3.0-dev * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- 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: