summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-30 01:56:45 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-30 01:56:45 +0000
commite155879b4602b7cf1cdd4b780dc5576f31c27c64 (patch)
tree92d9a9a356a14a8bddd4ba2fd40f913570d8528d
parent5172e595c90357ff0d66dbda52e58baeaa394336 (diff)
* lib/net/ftp.rb (get): fix wrong argument name. Thanks to William
Webber. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/net/ftp.rb6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index de88f4092f..0ed5f30d40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jul 30 10:54:10 2003 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/ftp.rb (get): fix wrong argument name. Thanks to William
+ Webber.
+
Wed Jul 30 10:31:37 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* ext/iconv/iconv.c (iconv_convert): append unchanged portion
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index 7f18670f1b..d703f20733 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -507,12 +507,12 @@ module Net
# Retrieves +remotefile+ in whatever mode the session is set (text or
# binary). See #gettextfile and #getbinaryfile.
#
- def get(localfile, remotefile = File.basename(localfile),
+ def get(remotefile, localfile = File.basename(remotefile),
blocksize = DEFAULT_BLOCKSIZE, &block) # :yield: data
unless @binary
- gettextfile(localfile, remotefile, &block)
+ gettextfile(remotefile, localfile, &block)
else
- getbinaryfile(localfile, remotefile, blocksize, &block)
+ getbinaryfile(remotefile, localfile, blocksize, &block)
end
end