diff options
| author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-27 06:47:41 +0000 |
|---|---|---|
| committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-27 06:47:41 +0000 |
| commit | dc127e467a7e5d04291b1f76633f235de70728b6 (patch) | |
| tree | 1e672827e6db36f941607a0532361e426b3b0921 /lib | |
| parent | 4080689415d2cc9ce215194d62d21c3fca28699e (diff) | |
| download | ruby-dc127e467a7e5d04291b1f76633f235de70728b6.tar.gz ruby-dc127e467a7e5d04291b1f76633f235de70728b6.tar.xz ruby-dc127e467a7e5d04291b1f76633f235de70728b6.zip | |
* lib/net/ftp.rb (getbinaryfile, list): call to_s to convert
a Pathname instance into a string. [ruby-core:26237]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/net/ftp.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index 8ae3e1610..52bd37595 100644 --- a/lib/net/ftp.rb +++ b/lib/net/ftp.rb @@ -523,7 +523,7 @@ module Net 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 @@ module Net 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) |
