summaryrefslogtreecommitdiff
path: root/lib/net
AgeCommit message (Collapse)Author
2007-12-24Fix uninitialized variable warning in Net::HTTPdrbrain
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
2007-12-22* ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext.build): removed.gotoyuzo
* 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
2007-12-22* lib/net/imap.rb (encode_utf7): accept UTF-8 strings.shugo
* 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
2007-12-22* lib/net/imap.rb: fixed RDoc markups.shugo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22* lib/net/imap.rb (initialize): fixed documentation.shugo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22* lib/net/pop.rb (enable_ssl): use OpenSSL::SSL::SSLContext.buildshugo
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
2007-12-21* lib/net/imap.rb (initialize): accept service name. changedshugo
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
2007-12-21* regerror.c, string.c, io.c, lib/getoptlong.rb, lib/net/imap.rb,akr
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
2007-12-20* lib/net/http.rb (Net::HTTP#connect): usegotoyuzo
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
2007-12-20 * lib/net/imap.rb (initialize): the second argument is an optionko1
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
2007-12-10* lib/net/http.rb (Net::HTTP::get): now supports gzipmatz
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
2007-11-04* eval.c (rb_f_send): allow send/__send__ to call methods of allmatz
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
2007-11-04* lib/net/http.rb (HTTPHeader#initialize): provide default User-Agent to fix ↵aamine
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
2007-10-25* lib/net/telnet.rb (Net::Telnet#login): Allowing "passphrase" injeg2
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
2007-10-25* lib/net/telnet.rb (Net::Telnet#login): Making the password promptjeg2
pattern case insensitive. [ruby-Bugs-10746] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25* lib/net/pop.rb (Net::POP3::do_start): type fixed. a patch frommatz
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
2007-10-08* lib/net/imap.rb, lib/net/smtp.rb, lib/net/pop.rb: hostname shouldgotoyuzo
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
2007-10-07* lib/net/http.rb: remove enable_post_connection_check flag.gotoyuzo
* lib/open-uri.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-24 lib/net/http.rb: fix typo.shyouhei
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-23* lib/net/http.rb: an SSL verification (the server hostname shouldgotoyuzo
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
2007-09-17* lib/net/http.rb (HTTP::GenericRequest#initialize): check path is not nil. ↵aamine
[ruby-dev:31149] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-24* test/ruby/test_dir.rb (TestDir::setup): ?c now makes a string.matz
* 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
2007-05-30* lib/net/imap.rb (ResponseParser#next_token): fixedshugo
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
2007-05-30* lib/net/ftp.rb (Net::FTP#transfercmd): skip 2XXshugo
responses for some FTP servers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-20* lib/net/smtp.rb: CRAM-MD5 authentication did not work. [ruby-dev:30770]aamine
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-12* lib/net/http.rb (tokens): forgot to add strip. [ruby-core:11120]aamine
* 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
2007-05-06* lib/net/http.rb (Net::HTTP.post_form): allow an Array of String for pairs ↵aamine
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
2007-05-06* lib/net/http.rb: Connection header field might include both of ↵aamine
"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
2007-04-09* lib/net/imap.rb (disconnect): call shutdown forshugo
SSLSocket. Thanks, Technorama Ltd. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-19* lib/net/protocol.rb (rbuf_read): extend buffer size for speed.aamine
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-16* lib/net/pop.rb: change default verification mode from VERIFY_PEER to ↵aamine
VERIFY_NONE because most POPS server does not have true certification. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-16* lib/net/http.rb: merge Ruby-SSPI patch contributed by Justin Bailey.aamine
* ext/Win32API/lib/win32/sspi.rb: new file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-05* lib/net/smtp.rb: support automatic STARTTLS.aamine
* lib/net/smtp.rb: check server advertisement. * lib/net/smtp.rb: introduce new class SMTP::Response. * lib/net/smtp.rb (getok): should not use sprintf. * lib/net/smtp.rb (get_response): ditto. * lib/net/protocol.rb: reduce syntax warning on 1.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-04* lib/net/smtp.rb: reconstruct SMTPS/STARTTLS interface. New interface is ↵aamine
incompatible from current 1.9 interface at all. * lib/net/smtp.rb: All SSL-related class methods are removed; use instance methods instead. * lib/net/smtp.rb: rename methods: *ssl -> *tls (with alias "ssl"). * lib/net/smtp.rb: rename methods: *tls -> *starttls. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-06* lib/net/ftp.rb: moved fixes for EPIPE to the correctshugo
place. [ruby-core:10204] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-06* lib/net/ftp.rb: check the control connection on EPIPE.shugo
Thanks, Simon Williams. [ruby-core:9547] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-11-04* lib/net/imap.rb: accept NOMODSEQ. [ruby-core:9002]shugo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-20* lib/net/imap.rb: allow extra spaces in responses.shugo
Thanks, Tom Soderlund. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-22* lib/net/smtp.rb: parameter `to_addrs' might be an Array, .flatten is ↵aamine
required. [ruby-dev:29316] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-15* lib/net/smtp.rb: support SMTP/SSL. Thanks Kazuhiro NISHIYAMA.aamine
* lib/net/smtp.rb: new method SMTP.use_ssl? * lib/net/smtp.rb: new method SMTP.enable_ssl. * lib/net/smtp.rb: new method SMTP.disable_ssl. * lib/net/smtp.rb: new method SMTP.default_ssl_port. * lib/net/smtp.rb: new method SMTP.default_tls_port. * lib/net/smtp.rb: now SMTP#enable_tls accepts a SSLContext object, instead of a verity and cert. [FEATURE CHANGE] * lib/net/smtp.rb: new method SMTP.ssl_context. * lib/net/smtp.rb: new method SMTP.default_ssl_context. * lib/net/smtp.rb: export SMTP.authenticate. * lib/net/smtp.rb: export SMTP.auth_plain. * lib/net/smtp.rb: export SMTP.auth_login. * lib/net/smtp.rb: export SMTP.auth_cram_md5. * lib/net/smtp.rb: export SMTP.starttls. * lib/net/smtp.rb: export SMTP.helo. * lib/net/smtp.rb: export SMTP.ehlo. * lib/net/smtp.rb: export SMTP.mailfrom. * lib/net/smtp.rb: export SMTP.rcptto. * lib/net/smtp.rb: export SMTP.rcptto_list. * lib/net/smtp.rb: export SMTP.data. * lib/net/smtp.rb: export SMTP.quit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-09* lib/net/smtp.rb (Net::SMTP::auth_cram_md5): use ord to retrievematz
bytes from strings. a patch from WATANABE Tetsuya <Tetsuya.WATANABE at nifty.com>. [ruby-dev:29240] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26small document fixaamine
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26* lib/net/http.rb (Net::HTTP#post, request_post, request): should set ↵aamine
Content-Type: x-www-form-urlencoded by default. * lib/net/http.rb (Net::HTTPHeader#content_type): should return nil when there's no Content-Type. * lib/net/http.rb (Net::HTTPHeader#sub_type): should return nil when there's no sub Content-Type (e.g. "Content-Type: text"). * lib/net/http.rb (Net::HTTPHeader#type_params): wrongly failed when there's no Content-Type. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-23* lib/net/http.rb (Net::HTTPResponse): duplicated error 501;matz
HTTPInternalServerError should be error 500. [ruby-core:08037] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-05* lib/net/http.rb (send_request_with_body): #content_type never return ↵aamine
false, use #main_type instead. [ruby-core:07476] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-05* lib/net/http.rb (add_field, get_fields): keep 1.8.2 compatibility. This ↵aamine
patch is contributed by Rob Pitt. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-22* ext/tk/lib/tk/font.rb, ext/tk/lib/tkextlib/ICONS/icons.rb,nobu
ext/tk/sample/tkextlib/treectrl/demo.rb, lib/net/imap.rb, lib/rss/parser.rb, test/rss/test_content.rb, test/rss/test_dublincore.rb, test/rss/test_syndication.rb, test/rss/test_trackback.rb, test/ruby/test_eval.rb, test/socket/test_socket.rb, test/socket/test_udp.rb: Object#fcall was renamed as Object#funcall. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-15* lib/net/ftp.rb: (getbinaryfile): allow nil for localfile, andshugo
returns retrieved data if localfile is nil. * lib/net/ftp.rb: (gettextfile): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16* lib/net/imap.rb: supported DIGEST-MD5. Thanks, Mathieu Arnold.shugo
* lib/net/imap.rb: use fcall instead of send. Thanks, Satoru Takabayashi. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16* ext/syck/rubyext.c (syck_resolver_transfer): remove C++ stylematz
comment (//). [ruby-core:05793] * lib/net/telnet.rb (Net::Telnet::waitfor): replace sysread with readpartial. [ruby-talk:127641] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e