aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net
Commit message (Collapse)AuthorAgeFilesLines
* * lib/net/http.rb (Net::HTTP#urlencode): str[0] returns char in 1.9.naruse2008-08-241-1/+1
| | | | | | Patch by Junegunn Choi [ruby-core:18368] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/server.rb (WEBrick::GenericServer#shutdown):kazu2008-08-221-5/+9
| | | | | | | | | | | | rescue Errno::ENOTCONN and close. [ruby-dev:35896] * test/openssl/test_ssl.rb (OpenSSL#start_server): ditto. [ruby-dev:35897] * lib/net/imap.rb (Net::IMAP#disconnect): ditto. [ruby-dev:35898] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: POP3Command should export @socket since POP calls #socket.aamine2008-08-121-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (send_request_with_body): Content-Length should be byte ↵aamine2008-08-121-1/+1
| | | | | | length of string. (closes #203) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/https.rb: supress syntax warning.aamine2008-08-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP#initialize): initialize net/https variables to ↵aamine2008-08-121-0/+5
| | | | | | supress syntax warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18511 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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@18370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (disconnect): do not refer SSL::SSLSocket forshugo2008-08-051-2/+4
| | | | | | | environments without OpenSSL. fixed [ruby-dev:35755]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb (Net::SMTP::rcptto): fix a typo. a patch fromshyouhei2008-08-041-1/+1
| | | | | | | | Masao Takaku <masao at nii.ac.jp> fix [ruby-dev:35489]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18351 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@17868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb (Net::SMTP::start): use 'localhost' instead ofmatz2008-07-031-3/+3
| | | | | | | | 'localhost.localdomain'. [ruby-dev:35333] * lib/net/smtp.rb (Net::SMTP::SMTP.start): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb (Net::POP3#set_all_uids): speedkazu2008-06-191-3/+2
| | | | | | | up. a patch from <m-sumi AT techfirm.co.jp> [ruby-list:45047] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb: Fixing Telnet#wairfor() which was broken by changes tojeg22008-06-171-2/+2
| | | | | | | | the Kernel::Integer() method. [ruby-core:17272] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc.rb: massive spelling correction patch from Evan Farrarmatz2008-06-042-3/+3
| | | | | | <evanfarrar at gmail.com> in [ruby-doc:1382] applied. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: do not use Thread#raise. [ruby-dev:34739]shugo2008-05-211-7/+29
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb: This patch from Brian Candler adds a FailEOF mode whichjeg22008-05-011-0/+7
| | | | | | | | | can be activated to have net/telnet raise EOFError exceptions when the remote connection is closed. The default behavior remains unchanged though. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb: Fixing a bug where line endings would not be properlyjeg22008-04-301-3/+10
| | | | | | | | | escaped when the two character ending was broken up into separate TCP packets. Issue reported and patched by Brian Candler. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb, lib/net/smtp.rb, lib/net/pop.rb: update URLs of Japanese ↵kazu2008-04-153-3/+3
| | | | | | documents. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb (Net::POP3::do_finish): clear @n_mails andmatz2008-04-031-0/+2
| | | | | | @n_bytes as well. [ruby-core:16144] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/lib/json/pure/generator.rb,naruse2008-02-122-3/+3
| | | | | | | | | | | | | | | ext/json/lib/json/pure/parser.rb, ext/openssl/lib/openssl/x509.rb, ext/win32ole/sample/olegen.rb, lib/date/format.rb, lib/irb/context.rb, lib/irb/workspace.rb, lib/net/http.rb, lib/net/imap.rb, lib/rdoc/generator.rb, lib/rdoc/markup/to_html.rb, lib/rdoc/markup/to_latex.rb, lib/rdoc/parsers/parse_c.rb, lib/rdoc/ri/formatter.rb, lib/rexml/parsers/baseparser.rb, lib/rexml/quickpath.rb, lib/rexml/text.rb, lib/rss/parser.rb, lib/uri/common.rb, lib/uri/generic.rb, lib/webrick/httpresponse.rb, lib/webrick/httpservlet/filehandler.rb, lib/yaml/baseemitter.rb, lib/yaml/encoding.rb: performance tuning arround String#gsub. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix uninitialized variable warning in Net::HTTPdrbrain2007-12-241-0/+1
| | | | | | | | Remove unused method in IRB::OutputMethod. [ruby-talk:284582] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext.build): removed.gotoyuzo2007-12-223-6/+9
| | | | | | | | | | | | | * ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext#set_params): new method to set suitable SSL parameters. * lib/net/pop.rb, lib/net/http.rb, lib/net/imap.rb, test/openssl/test_ssl.rb: follow above change. * test/net/http/test_https.rb: refine error case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (encode_utf7): accept UTF-8 strings.shugo2007-12-221-3/+3
| | | | | | | * lib/net/imap.rb (decode_utf7): return UTF-8 strings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: fixed RDoc markups.shugo2007-12-221-8/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (initialize): fixed documentation.shugo2007-12-221-11/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb (enable_ssl): use OpenSSL::SSL::SSLContext.buildshugo2007-12-221-50/+55
| | | | | | | | instead of SSLContext.new (default verify mode is now OpenSSL::SSL::VERIFY_PEER). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (initialize): accept service name. changedshugo2007-12-211-9/+7
| | | | | | | the defalut value of the old style +verify+ argument to true. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regerror.c, string.c, io.c, lib/getoptlong.rb, lib/net/imap.rb,akr2007-12-211-1/+1
| | | | | | | | | | | compile.c, sprintf.c, parse.y, ext/win32ole/win32ole.c, ext/tk/sample/demos-en/entry3.rb, ext/tk/lib/tcltk.rb, ext/openssl/ossl_bn.c, numeric.c, vm.c, benchmark/bm_so_meteor_contest.rb, bignum.c, ruby.c: don't "illegal" for non law violation context. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP#connect): usegotoyuzo2007-12-202-48/+16
| | | | | | | | | | | | OpenSSL::SSL::SSLContext.build instead of SSLContext.new (default verify mode is now OpenSSL::SSL::VERIFY_PEER). * lib/net/https.rb: SSL parameters are defined by attr_accessor. * test/net/http/test_https.rb: add test for HTTPS features. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (initialize): the second argument is an optionko12007-12-201-21/+74
| | | | | | | hash now. use SSLContext.build to specify SSL parameters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP::get): now supports gzipmatz2007-12-101-3/+51
| | | | | | | content-encoding. a patch from Hugh Sasse <hgs AT dmu.ac.uk>. [ruby-core:13451] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_f_send): allow send/__send__ to call methods of allmatz2007-11-042-6/+6
| | | | | | | | | | visibility again. we no longer provide __send, __send!. * eval.c (rb_invoke_method): new method to honor private visibility. if it's invoked in a function call style, it calls private methods as well (previous 1.9 send behavior). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (HTTPHeader#initialize): provide default User-Agent to fix ↵aamine2007-11-041-0/+1
| | | | | | 500 error on some corrupted HTTP servers. [ruby-core:13135] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb (Net::Telnet#login): Allowing "passphrase" injeg22007-10-251-1/+1
| | | | | | | addition to "password" for Telnet login prompts. [ruby-Bugs-10746] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb (Net::Telnet#login): Making the password promptjeg22007-10-251-1/+1
| | | | | | | pattern case insensitive. [ruby-Bugs-10746] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb (Net::POP3::do_start): type fixed. a patch frommatz2007-10-251-1/+1
| | | | | | Dan Zwell <dzwell AT zwell.net> in [ruby-core:12941]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb, lib/net/smtp.rb, lib/net/pop.rb: hostname shouldgotoyuzo2007-10-083-25/+29
| | | | | | | | | | be verified against server's indentity as persented in the server's certificate. [ruby-dev:31960] * ext/openssl/lib/net/telnets.rb, ext/openssl/lib/net/ftptls.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: remove enable_post_connection_check flag.gotoyuzo2007-10-071-9/+1
| | | | | | | * lib/open-uri.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/net/http.rb: fix typo.shyouhei2007-09-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: an SSL verification (the server hostname shouldgotoyuzo2007-09-231-0/+12
| | | | | | | | | | | | | | | | be matched with its certificate's commonName) is added. this verification can be skipped by "Net::HTTP#enable_post_connection_check=(false)". suggested by Chris Clark <cclark at isecpartners.com> * lib/net/open-uri.rb: use Net::HTTP#enable_post_connection_check to perform SSL post connection check. * ext/openssl/lib/openssl/ssl.c (OpenSSL::SSL::SSLSocket#post_connection_check): refine error message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (HTTP::GenericRequest#initialize): check path is not nil. ↵aamine2007-09-171-0/+1
| | | | | | [ruby-dev:31149] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_dir.rb (TestDir::setup): ?c now makes a string.matz2007-08-242-6/+6
| | | | | | | | | | * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::initialize): initialize @workdir to stop warning. * lib/drb/drb.rb (DRb::DRbServer::InvokeMethod::perform_without_block): replace funcall by send!. other files in the distribution as well. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (ResponseParser#next_token): fixedshugo2007-05-301-2/+2
| | | | | | | | | | | error message. * lib/net/imap.rb (ResponseParser#parse_error): fixed the condition not to refer @token.symbol unexpectedly. Thanks, Dick Monahan. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12414 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@12412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: CRAM-MD5 authentication did not work. [ruby-dev:30770]aamine2007-05-201-4/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (tokens): forgot to add strip. [ruby-core:11120]aamine2007-05-121-1/+1
| | | | | | | * test/net/http/test_http.rb: test Net::HTTP.post_form. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP.post_form): allow an Array of String for pairs ↵aamine2007-05-061-4/+21
| | | | | | | | | argument. [ruby-Bugs:10340] * lib/net/http.rb (Net::HTTP#set_form_data): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: Connection header field might include both of ↵aamine2007-05-061-19/+29
| | | | | | "keep-alive" token and "close" token. [ruby-core:10818] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (disconnect): call shutdown forshugo2007-04-091-1/+5
| | | | | | | SSLSocket. Thanks, Technorama Ltd. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e