summaryrefslogtreecommitdiffstats
path: root/test/net
Commit message (Collapse)AuthorAgeFilesLines
* * lib/net/imap.rb (idle): leaves IDLE in a ensure clause. a patchshugo2009-07-241-0/+94
| | | | | | | | | from Eric Hodel. * test/net/imap/test_imap.rb (setup, teardown): turn on Socket.do_not_reverse_lookup in tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (resp_text_code): accepts response codes withoutshugo2009-07-231-0/+64
| | | | | | | | | | | text. [ruby-core:24194] * lib/net/imap.rb (idle, idle_done): new methods for the IMAP4 IDLE command (RFC 2177). Thanks, Eric Hodel. * lib/net/imap.rb (format_date, format_datetime): new method to format IMAP-style date/datetime. Thanks, Eric Hodel. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-062-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: check for invalid APOP timestamp. (CVE-2007-1558)kazu2008-10-141-0/+132
| | | | | | | | | [ruby-dev:36631] * test/net/pop/test_pop.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test: assert_raises has been deprecated since a long time ago.nobu2008-09-241-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/http/test_http.rb (_test_request__file): specify encodingmame2008-06-292-2/+3
| | | | | | | | | explicitly. * test/net/http/utils.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/http/test_http.rb: compare encodings of two strings beforemame2008-06-191-0/+1
| | | | | | | comparing themself, which suppress too big error output. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: do not use Thread#raise. [ruby-dev:34739]shugo2008-05-211-0/+31
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/io/nonblock/test_flush.rb: don't set Thread.abort_on_exception.akr2008-05-051-6/+17
| | | | | | | | * test/net/imap/test_imap.rb: ensure disconnecting imap to terminate receiver thread.. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/imap/test_imap.rb: check OpenSSL definition before testing imaps.usa2007-12-301-24/+34
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/http/test_https.rb: should rescue LoadError.gotoyuzo2007-12-231-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/imap/test_imap.rb: added tests for SSL.shugo2007-12-224-0/+216
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext.build): removed.gotoyuzo2007-12-221-1/+1
| | | | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@14479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (encode_utf7): accept UTF-8 strings.shugo2007-12-221-3/+5
| | | | | | | * lib/net/imap.rb (decode_utf7): return UTF-8 strings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP#connect): usegotoyuzo2007-12-202-3/+113
| | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@14371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/http/utils.rb: split TestNetHTTPUtils module fromgotoyuzo2007-12-182-84/+83
| | | | | | | test/net/http/test_http.rb. and start HTTP server in each test case. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* catch EOFError in a thread.akr2007-12-151-7/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* close socket.akr2007-12-151-1/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/http/test_https_proxy.rbmatz2007-11-141-0/+3
| | | | | | | (HTTPSProxyTest::test_https_proxy_authentication): initialize local variable 't' first. [ruby-dev:32253] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (tokens): forgot to add strip. [ruby-core:11120]aamine2007-05-121-0/+20
| | | | | | | * test/net/http/test_http.rb: test Net::HTTP.post_form. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge test cases with Ruby 1.8aamine2006-07-261-3/+74
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP#post, request_post, request): should set ↵aamine2006-07-261-0/+12
| | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@10611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/scanf.rb (Scanf::FormatSpecifier#letter, #width): use matchednobu2005-10-081-3/+3
| | | | | | | | | | | | | | substring directly. * ext/nkf/lib/kconv.rb (Kconv.conv): get rid of nil.to_a. * test/ruby/test_assignment.rb, test/ruby/test_iterator.rb: followed change of sample/test.rb. * test/net/http/test_http.rb: removed superfluous splatting stars. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/http/test_http.rb (teardown): ensure that Net::HTTP is version ↵aamine2005-09-241-0/+5
| | | | | | 1.2. [ruby-dev:27312] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/http/test_http.rb: new file.aamine2005-09-241-0/+377
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* skip test if openssl is not available.akr2005-06-071-2/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix another IPv6 issue.akr2005-06-031-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid IPv6 issue.akr2005-06-031-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ML number.akr2005-06-031-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* set verify_mode to avoid a warning.akr2005-06-031-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2005-06-031-0/+26
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: new method Net::HTTP.post_form.aamine2005-04-201-0/+22
| | | | | | | | * lib/net/http.rb: new method Net::HTTPHeader#set_form_data and its alias #form_data=. * lib/net/http.rb: Net::HTTPHeader#add_header -> add_field (adjustted to Ruby 1.8). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (decode_utf7): use pack("U*") to encode UTF-8.shugo2005-01-211-0/+14
| | | | | | | | * lib/net/imap.rb (encode_utf7): use unpack("U*") to decode UTF-8. * test/net/imap/test_imap.rb: added tests for Net::IMAP. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (each_capitalized): should join header field value. This ↵aamine2005-01-011-0/+8
| | | | | | | | | patch is contributed sheepman [ruby-list:40478] * test/net/http/test_httpheader.rb: test it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: HTTPHeader keeps its header fields as an array.aamine2004-03-061-10/+77
| | | | | | | | | | * lib/net/http.rb: new method HTTPHeader#add_header, get_fields. * lib/net/http.rb: new method HTTPHeader#content_length=. * lib/net/http.rb: new method HTTPHeader#content_type, main_type, sub_type, type_params, content_type=, set_content_type. * lib/net/http.rb (HTTPHeader#basic_encode): result of pack(m) may contain multiple LFs. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/test_httpheader.rb: new file.aamine2004-01-071-0/+137
* MANIFEST: add test/net/test_httpheader.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e