[前][次][番号順一覧][スレッド一覧]

ruby-changes:13719

From: shugo <ko1@a...>
Date: Tue, 27 Oct 2009 15:47:58 +0900 (JST)
Subject: [ruby-changes:13719] Ruby:r25510 (trunk): * lib/net/ftp.rb (getbinaryfile, list): call to_s to convert

shugo	2009-10-27 15:47:41 +0900 (Tue, 27 Oct 2009)

  New Revision: 25510

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25510

  Log:
    * lib/net/ftp.rb (getbinaryfile, list): call to_s to convert
      a Pathname instance into a string.  [ruby-core:26237]

  Modified files:
    trunk/ChangeLog
    trunk/lib/net/ftp.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25509)
+++ ChangeLog	(revision 25510)
@@ -1,3 +1,8 @@
+Tue Oct 27 15:44:48 2009  Shugo Maeda  <shugo@r...>
+
+	* lib/net/ftp.rb (getbinaryfile, list): call to_s to convert
+	  a Pathname instance into a string.  [ruby-core:26237]
+
 Tue Oct 27 12:30:16 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* gc.h (SET_MACHINE_STACK_END): use __i386__ instead of __i386,
Index: lib/net/ftp.rb
===================================================================
--- lib/net/ftp.rb	(revision 25509)
+++ lib/net/ftp.rb	(revision 25510)
@@ -523,7 +523,7 @@
       end
       begin
 	f.binmode if localfile
-	retrbinary("RETR " + remotefile, blocksize, rest_offset) do |data|
+	retrbinary("RETR " + remotefile.to_s, blocksize, rest_offset) do |data|
 	  f.write(data) if localfile
 	  yield(data) if block_given?
           result.concat(data) if result
@@ -656,7 +656,7 @@
     def list(*args, &block) # :yield: line
       cmd = "LIST"
       args.each do |arg|
-	cmd = cmd + " " + arg
+	cmd = cmd + " " + arg.to_s
       end
       if block
 	retrlines(cmd, &block)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]