[#5563] Non-overridable and non-redefinable methods — Eric Mahurin <eric_mahurin@...>

Lately, I've been thinking about the future of ruby

44 messages 2005/08/19
[#5564] Re: Non-overridable and non-redefinable methods — Austin Ziegler <halostatue@...> 2005/08/19

On 8/19/05, Eric Mahurin <eric_mahurin@yahoo.com> wrote:

[#5571] Re: Non-overridable and non-redefinable methods — Eric Mahurin <eric_mahurin@...> 2005/08/19

--- Austin Ziegler <halostatue@gmail.com> wrote:

[#5574] Re: Non-overridable and non-redefinable methods — TRANS <transfire@...> 2005/08/20

Just wanted to add a few things.

[#5581] Re: Non-overridable and non-redefinable methods — Austin Ziegler <halostatue@...> 2005/08/20

On 8/19/05, TRANS <transfire@gmail.com> wrote:

[#5583] Re: Non-overridable and non-redefinable methods — "David A. Black" <dblack@...> 2005/08/20

Hi --

[#5585] Re: Non-overridable and non-redefinable methods — Eric Mahurin <eric_mahurin@...> 2005/08/20

--- "David A. Black" <dblack@wobblini.net> wrote:

[#5609] Pathname#walk for traversing path nodes (patch) — ES <ruby-ml@...>

Here is a small addition to Pathname against 1.9, probably suited

20 messages 2005/08/22

Re: uri test failures. (Re: [ruby-cvs] ruby/lib, ruby/lib/uri: Lovely RDOC patches from mathew (metaATpoboxDOTcom) on URI/* and getoptlong.rb)

From: mathew <meta@...>
Date: 2005-08-26 18:52:28 UTC
List: ruby-core #5689
Tanaka Akira wrote:

>In article <20050824050801.5B4E0C671F@lithium.ruby-lang.org>,
>  ryan@ruby-lang.org (ryan) writes:
>  
>
>>ryan        Wed, 24 Aug 2005 14:08:01 +0900
>>
>>  Modified files:
>>    ruby/lib:
>>      .document getoptlong.rb
>>    ruby/lib/uri:
>>      ftp.rb generic.rb http.rb https.rb mailto.rb
>>  Log:
>>    Lovely RDOC patches from mathew (metaATpoboxDOTcom) on URI/* and getoptlong.rb
>>    
>>
>
>It causes following test failures.
>
>  2) Failure:
>test_parse(URI::TestFTP) [/home/akr/chkbuild/tmp/build/ruby-trunk/ruby/test/uri/test_ftp.rb:24]:
><["ftp", "user:pass", "host.com", 21, "/abc/def", nil]> expected but was
><["ftp", "user:pass", "host.com", 21, "abc/def", nil]>.
>
>  3) Failure:
>test_parse(URI::TestGeneric) [/home/akr/chkbuild/tmp/build/ruby-trunk/ruby/test/uri/test_generic.rb:44]:
><["ftp", nil, "ftp.is.co.za", 21, "/rfc/rfc1808.txt", nil]> expected but was
><["ftp", nil, "ftp.is.co.za", 21, "rfc/rfc1808.txt", nil]>.
>
>It seems that non-documentation code is modifified.
>  
>

The test code is incorrect. As documented in RFC 1738 section 3.2.2 (and 
now documented in the classes too), 
ftp://ftp.example.com/foo/bar/file.ext should parse into a server of 
ftp.example.com, and a path of foo/bar/file.ext with no leading slash.

If you want a leading slash on your chdir command, you need to escape it 
in the URL, e.g. ftp://ftp.example.com/%2Ffoo/bar/file.ext.

See also 
<URL:http://rubyforge.org/tracker/index.php?func=detail&aid=2055&group_id=426&atid=1698>

Unfortunately, I didn't notice the tests, so I didn't update them.


mathew

In This Thread