[#39863] forループの速度 — Masahiro Sato <msato@...>

15 messages 2004/07/20

[#39868] イテレータとfor文 — OOTANI TAKASHI <otn@...5.so-net.ne.jp>

大谷と申します。

31 messages 2004/07/20
[#39886] Re: イテレータとfor文 — Tietew <tietew-ml-ruby-list@...> 2004/07/21

[ruby-list:39838] URI#merge and relative references

From: sheepman <sheepman@...>
Date: 2004-07-07 12:53:49 UTC
List: ruby-list #39838
こんばんは、sheepman です。

URI ライブラリで、

p URI.parse("http://www.example.com/foo/..") + "./"

=> #<URI::HTTP:0x2010db84 URL:http://www.example.com/foo/>

となります。この

http://www.example.com/foo/

は

http://www.example.com/

となるべきなのではないでしょうか。

ruby と URI ライブラリのバージョンは以下のとおりです。

$ ruby -r uri -ve 'puts URI::VERSION'
ruby 1.9.0 (2004-06-26) [i686-linux]
0.9.11

-- 
sheepman / TAMURA Takashi
sheepman@tcn.zaq.ne.jp http://sheepman.parfait.ne.jp/
Key fingerprint = 4E13 FE38 CD73 48D3 38AE  00EE 9E28 F98B D569 848E

In This Thread

Prev Next