summaryrefslogtreecommitdiffstats
path: root/lib/net
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/net/http.rb: net/https is merged.aamine2004-03-051-5/+90
| | | | | | | * ext/openssl/lib/net/https.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: support WebDAV methods, PROPPATCH, LOCK, UNLOCK, OPTIONS, ↵aamine2004-03-051-0/+108
| | | | | | PROPFIND, DELETE, MOVE, COPY, MKCOL. This patch is contributed by Tatsuki Sugiura. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: Net::HTTPResponse#response is obsolete. [ruby-core:02592]aamine2004-03-051-2/+10
| | | | | | | | * lib/net/http.rb: Net::HTTPResponse#header is obsolete. * lib/net/http.rb: Net::HTTPResponse#read_header is obsolete. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (HTTPResponse#to_ary): should return an object which does ↵aamine2004-03-051-1/+5
| | | | | | not respond to #to_ary. It causes infinite loop in puts. [ruby-core:02578] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb (WriteAdapater#puts): must append "\n" to the string, ↵aamine2004-02-121-1/+1
| | | | | | don't prepend. (ruby-bugs:PR#1280) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (HTTP#request): should not overwrite Connection header. ↵aamine2004-02-081-10/+10
| | | | | | (ruby-bugs:PR#1274) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* From ruby_1_8 branch:gsinclair2004-02-011-4/+4
| | | | | | | | | * lib/test/unit.rb: rearranged documentation for RDoc's sake. * lib/matrix.rb: improved documentation. * lib/net/http.rb: slight documentation formatting improvement. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Request#initialize): reject only when a path is empty. ↵aamine2004-01-291-1/+1
| | | | | | [ruby-dev:22771] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (BEG_REGEXP): allow 8-bit characters in quoted strings for ↵shugo2004-01-221-2/+2
| | | | | | | | | Novell GroupWise Internet Agent. * lib/net/imap.rb (DATA_REGEXP): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (newline_node): do not use NODE_NEWLINE node anymore,matz2004-01-211-2/+2
| | | | | | | | | | | | | | | | use NEWLINE flag instead. * ext/socket/socket.c (sock_gethostbyname): returns host if ai_canonname is NULL. (ruby-bugs PR#1243) * parse.y (block_append): update nd_end for "real" head node. [ruby-list:39058] * marshal.c (w_class): should not dump singleton class. [ruby-dev:22631] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (envelope): allow NIL.shugo2004-01-211-32/+52
| | | | | | | | | | * lib/net/imap.rb (body): ditto. * lib/net/imap.rb (number): ditto. * lib/net/imap.rb (ensure_nz_number): show a detailed error message. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (HTTPHeader#content_length): should return nil unless ↵aamine2004-01-071-1/+2
| | | | | | header exists. [ruby-dev:22519] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (GenericRequest#initialize): check if path begins with '/'.aamine2003-12-291-152/+135
| | | | | | | * lib/net/http.rb: def m( arg ) -> def m(arg) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (authenticate): remove "\n" from base64 encodedshugo2003-12-241-1/+1
| | | | | | | strings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Document Class and Dirdave2003-12-191-9/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: update hyperlink to the Japanese document.aamine2003-12-041-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: wrote the warning about HTTP_PROXY environment variable.aamine2003-12-021-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (to_ary): print more friendly warning message.aamine2003-11-191-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb: logging response body. [experimental] [ruby-list:38800]aamine2003-11-161-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (set_debug_output): last commit was wrong.aamine2003-11-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (set_debug_output): warn if method is called after #start. ↵aamine2003-11-161-0/+1
| | | | | | [ruby-dev:38798] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* consistent parentheses in assignment RHS.matz2003-10-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (finish): revert to 1.93.aamine2003-09-293-9/+34
| | | | | | | | | | | | * lib/net/pop.rb (finish): revert to 1.60. * lib/net/smtp.rb (finish): revert to 1.67. * lib/net/http.rb (do_start): ensure to close socket if failed to start session. * lib/net/pop.rb (do_start): ditto. * lib/net/smtp.rb (do_start): ditto. * lib/net/smtp.rb: SMTP#started? wrongly returned false always. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (finish): does not raise IOError even if !started?, to ↵aamine2003-09-293-12/+5
| | | | | | | | | | allow duplicated #finish call. * lib/net/pop.rb (finish): ditto. * lib/net/smtp.rb (finish): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: cosmetic improvements to documentationgsinclair2003-08-312-316/+318
| | | | | | | * lib/net/imap.rb: ditto git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb (check_response): AUTH CRAM-MD5 returns 334 response. ↵aamine2003-08-271-1/+1
| | | | | | [ruby-list:38279] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4449 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-215-21/+43
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* RD -> RDoc by William Webbergsinclair2003-08-111-248/+381
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* RD -> RDoc by William Webbergsinclair2003-08-061-326/+302
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: update document.aamine2003-08-053-69/+80
| | | | | | | | * lib/net/pop.rb: ditto. * lib/net/protocol.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* RDoc updated by William Webbergsinclair2003-08-051-135/+204
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* RDoc comments provided by William Webber <wew@williamwebber.com>gsinclair2003-08-051-467/+405
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (receive_responses): raise exception toshugo2003-08-041-17/+33
| | | | | | | client_thread. Thanks to William Webber. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: convert RD to RDoc.shugo2003-08-041-812/+871
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: respond_to? needs 2nd argument. [ruby-talk:77796]aamine2003-08-021-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: refine document.aamine2003-08-011-118/+174
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: convert RD to RDoc. Thanks William Webber. [ruby-doc:456]aamine2003-08-011-591/+566
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4270 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
* * lib/net/smtp.rb (send0): do taint check only when $SAFE > 0aamine2003-07-291-3/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: unify coding style.aamine2003-07-292-4/+4
| | | | | | | * lib/net/http.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb (Net::SMTP::send0): add taint check.matz2003-07-291-0/+4
| | | | | | | | | * ruby.h (LLONG_MIN): wrong value. * io.c (rb_f_getc): $stdin may not be IO. [ruby-dev:20973] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_chomp_bang): defer rb_str_modify() to actualmatz2003-07-271-1/+1
| | | | | | | | | | | | | modify point. other methods, replace, tr, delete, squeeze, lstrip, and rstrip as well. * string.c (rb_str_rstrip_bang): remove trailing '\0' at the end of string. * string.c (rb_str_lstrip_bang): do not strip '\0' from the left. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4184 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/smtp.rb: synchronize document with source code.aamine2003-07-022-171/+319
| | | | | | | * lib/net/pop.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: unify SMTP and SMTPCommand.aamine2003-07-023-327/+358
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/net/smtp.rb: new exception class SMTPError. * lib/net/smtp.rb: new exception class SMTPAuthenticationError. * lib/net/smtp.rb: new exception class SMTPServerBusy. * lib/net/smtp.rb: new exception class SMTPSyntaxError. * lib/net/smtp.rb: new exception class SMTPFatalError. * lib/net/smtp.rb: new exception class SMTPUnknownError. * lib/net/smtp.rb: change critical section protect algorithm. * lib/net/smtp.rb (SMTP#do_start): check authentication args before all. * lib/net/smtp.rb: new method send_message (alias send_mail). * lib/net/smtp.rb: new method open_message_stream (alias ready). * lib/net/pop.rb: POPBadResponse is a POPError. * lib/net/pop.rb (POPMail#pop): ban ReadAdapter. * lib/net/pop.rb (POPMail#top): ditto. * lib/net/pop.rb (POP3Command): change critical section protect algorithm. * lib/net/pop.rb (POP3Command#auth): USER and PASS should be one critical block. * lib/net/pop.rb (POP3Command#retr): ban `dest' argument using iterator. * lib/net/pop.rb (POP3Command#top): ditto. * lib/net/protocol.rb: #read_message_to -> #each_message_chunk * lib/net/protocol.rb: #D -> #LOG * lib/net/protocol.rb: #D_off -> #LOG_off * lib/net/protocol.rb: #D_on -> #LOG_on git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: set old class aliases for backward compatibility. ↵aamine2003-07-022-1/+13
| | | | | | | | | [ruby-talk:74863] * lib/net/protocol.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb (Net::POP3#start): typofix.eban2003-07-011-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e