зеркало из https://github.com/github/ruby.git
* lib/net/ftp.rb (getbinaryfile, list): call to_s to convert
a Pathname instance into a string. [ruby-core:26237] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
718a78b76a
Коммит
613a324f61
|
@ -1,3 +1,8 @@
|
|||
Tue Oct 27 15:44:48 2009 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* gc.h (SET_MACHINE_STACK_END): use __i386__ instead of __i386,
|
||||
|
|
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче