[Momonga-devel.ja:02006] Re: ruby-1.8.0
- From: Hiroyuki KOGA <koga@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 05 Aug 2003 19:39:09 +0900
古閑です.
On Mon, 04 Aug 2003 20:33:51 +0900
Kenta MURATA <muraken2@xxxxxxxxx> wrote:
> 先程リリースされた ruby-1.8.0 を HEAD へコミットします.以下の
> ものについては,ビルドできることが確認できています:
ruby-1.8.0では,File::dirname の挙動が変わっているみたいです.
ruby-1.6: File::dirname("/foo/bar/") -> "/foo/bar"
ruby-1.8: File::dirname("/foo/bar/") -> "/foo"
この影響で,mphをftpで使うとエラーとなります.
以下の部分なのですが,どう対処するのが正しいのでしょうか?
よろしくお願いします.
--- mph-0.92.6/ruby/modules/transfer.rb.org 2003-08-04 22:38:48.000000000 +0900
+++ mph-0.92.6/ruby/modules/transfer.rb 2003-08-05 19:16:38.000000000 +0900
@@ -30,7 +30,8 @@
@connection = Net::FTP.open(@uri.host)
@connection.passive = true
@connection.login
- @connection.chdir(File::dirname(@uri.path))
+ path = @uri.path + "."
+ @connection.chdir(File::dirname(path))
end
@connection.getbinaryfile(file,localfile)
rescue EOFError