[#68478] Looking for MRI projects for Ruby Google Summer of Code 2015 — Tony Arcieri <bascule@...>

Hi ruby-core,

10 messages 2015/03/10

[ruby-core:68529] [Ruby trunk - Bug #10896] [Closed] First example in the documentation for URI::join shows incorrect result

From: mail@...
Date: 2015-03-15 11:29:40 UTC
List: ruby-core #68529
Issue #10896 has been updated by gogo tanaka.

Status changed from Open to Closed

It was solved with [49728](http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49728). thanks.

----------------------------------------
Bug #10896: First example in the documentation for URI::join shows incorrect result
https://bugs.ruby-lang.org/issues/10896#change-51850

* Author: Glen Aultman-Bettridge
* Status: Closed
* Priority: Low
* Assignee: 
* ruby -v: 2.2.0
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
The example is 

~~~
p URI.join("http://example.com/","main.rbx")
# => #<URI::HTTP:0x2022ac02 URL:http://localhost/main.rbx>
~~~

but should be

~~~
p URI.join("http://example.com/","main.rbx")
# => #<URI::HTTP:0x2022ac02 URL:http://example.com/main.rbx>
~~~

This seems to have been introduced in the documentation for 1.9.3 and occurs in 2.1.5 and 2.2.0 docs as well.



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next