summaryrefslogtreecommitdiffstats
path: root/lib/net/ftp.rb
Commit message (Collapse)AuthorAgeFilesLines
* * lib/net/ftp.rb (putbinaryfile): use APPE for resume.shugo2009-11-191-2/+6
| | | | | | Thanks, Tomoyuki Chikanaga. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (Net::FTP#initialize): sets @binary to true.shugo2009-10-281-3/+14
| | | | | | | | | | | | | * lib/net/ftp.rb (Net::FTP#binary=): sends a TYPE command only when logged in. [ruby-dev:39548] * lib/net/ftp.rb (Net::FTP#send_type_command): new private method which sends an appropriate TYPE command according to the value of @binary. * lib/net/ftp.rb (Net::FTP#login): calls send_type_command instead of binary=. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (Net::FTP#initialize): @sock = nil.naruse2009-10-271-1/+2
| | | | | | | * lib/net/ftp.rb (Net::FTP#binary=): send command only when socket is open. [ruby-dev:39548] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (getbinaryfile, list): call to_s to convertshugo2009-10-271-2/+2
| | | | | | | 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
* * lib/net/ftp.rb (login): use "anonymous@" as a default password.shugo2009-10-121-17/+1
| | | | | | | [ruby-dev:39451] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (retrlines): added a new block parameter.shugo2009-10-121-10/+6
| | | | | | | | * lib/net/ftp.rb (gettextfile): preserve missing end-of-line at end of files. [ruby-core:24590] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-061-60/+60
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (Net::FTP#open_socket): SOCKSsocket is obsolete.matz2008-11-181-2/+2
| | | | | | | a patch from Alan Johnson <alan.wayne.johnson at gmail.com> in [ruby-core:19982]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (login): raise FTPReplyError if passwd or acctshugo2008-08-071-0/+2
| | | | | | | is not supplied. fixed [ruby-core:18058]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (chdir): handle 5xx errors correctly.shugo2008-08-051-3/+3
| | | | | | | fixed [ruby-core:18057]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (Net::FTP#sendport): use divmod. [ruby-core:17557]nobu2008-07-041-5/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (Net::FTP#transfercmd): skip 2XXshugo2007-05-301-0/+4
| | | | | | | responses for some FTP servers. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb: moved fixes for EPIPE to the correctshugo2007-02-061-14/+14
| | | | | | | place. [ruby-core:10204] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb: check the control connection on EPIPE.shugo2007-02-061-0/+14
| | | | | | | Thanks, Simon Williams. [ruby-core:9547] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb: (getbinaryfile): allow nil for localfile, andshugo2005-10-151-17/+34
| | | | | | | | returns retrieved data if localfile is nil. * lib/net/ftp.rb: (gettextfile): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (binary=): send TYPE commands only once.shugo2004-06-201-59/+83
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (MDTM_REGEXP): fix for demon's ftp server.shugo2004-05-271-1/+1
| | | | | | | Thanks, Rutger Nijlunsing. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb: ported documentation improvement from 1.8 branchgsinclair2004-05-091-6/+6
| | | | | | | | | | * lib/net/imap.rb: ditto * lib/net/pop.rb: ditto * lib/net/smtp.rb: ditto * lib/net/telnet.rb: ditto git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c, io.c, pack.c, lib/benchmark.rb, lib/cgi.rb, lib/csv.rb,nobu2004-04-181-1/+1
| | | | | | | | | | | | | | lib/date.rb, lib/ftools.rb, lib/getoptlong.rb, lib/logger.rb, lib/matrix.rb, lib/monitor.rb, lib/set.rb, lib/thwait.rb, lib/timeout.rb, lib/yaml.rb, lib/drb/drb.rb, lib/irb/workspace.rb, lib/net/ftp.rb, lib/net/http.rb, lib/net/imap.rb, lib/net/pop.rb, lib/net/telnet.rb, lib/racc/parser.rb, lib/rinda/rinda.rb, lib/rinda/tuplespace.rb, lib/shell/command-processor.rb, lib/soap/rpc/soaplet.rb, lib/test/unit/testcase.rb, lib/test/unit/testsuite.rb: typo fix. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Small documentation update, including source attribution.gsinclair2003-08-211-2/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Small changes to documentation; mainly hiding things from RDoc.gsinclair2003-08-211-6/+22
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (return_code): obsolete.shugo2003-07-301-26/+28
| | | | | | | | | * lib/net/ftp.rb (last_response_code): new method. lastresp is now alias to last_response_code. * lib/net/ftp.rb (last_response): new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (get): fix wrong argument name. Thanks to Williamshugo2003-07-301-3/+3
| | | | | | | Webber. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Small documentation correction.gsinclair2003-07-291-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_match2): add warning to "~string".matz2003-07-191-1/+13
| | | | | | | | | | [ruby-list:37751] * lib/net/ftp.rb (Net::FTP::open): takes block. suggested by Gavin Sinclair in [ruby-core:01237]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (storebinary): seek correctly. Thanks, William Webber.shugo2003-06-131-1/+8
| | | | | | | * lib/net/ftp.rb (putbinaryfile): rescue FTPPermError. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added RDoc comments. See comments at EOF for remaining issues.gsinclair2003-01-311-22/+230
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (set_socket): new method.shugo2002-07-181-1/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_slice_bang): if there's no correspondingmatz2002-07-111-2/+2
| | | | | | | | | | | | | | | | | | | | substring, slice! should return nil without exception. * array.c (rb_ary_insert): type fixed. * string.c (rb_str_split_m): accept separator value nil as well. * string.c (rb_str_become): was leaking memory. * class.c (rb_include_module): should not alter other classes/modules by inclusion. by this fix, local order may not be preserved for some cases. * class.c (include_class_new): module may be T_ICLASS; retrieve original module information. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (get): new method.shugo2002-07-031-6/+25
| | | | | | | | | * lib/net/ftp.rb (putt): ditto. * lib/net/ftp.rb (binary): ditto. * lib/net/ftp.rb (binary=): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (getbinaryfile): the second argument (localfile)shugo2002-07-031-2/+2
| | | | | | | | is now optional. * lib/net/ftp.rb (gettextfile): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb: use &block and yield for speed.shugo2002-07-031-49/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (noop): new method.shugo2002-06-111-0/+9
| | | | | | | * lib/net/ftp.rb (site): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* shugoshugo2000-12-211-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* matz: 1.6.0 final (hopufully)matz2000-09-121-7/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added default blocksize to Net::FTP#getbinaryfileshugo2000-08-171-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* matzmatz2000-08-151-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* matzmatz2000-07-101-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *** empty log message ***shugo2000-06-221-9/+33
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2000-03-06matz2000-03-061-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *** empty log message ***shugo2000-02-081-0/+642
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e