16 Commits

Author SHA1 Message Date
nagachika
359653658e merge revision(s) 8d04260acd8b6fba98867acc1a7e786495813fa0,2fbd8dca18a102cb3ffc5e7e6235c09fd0d04ba3,4165ec91d87ff1fcb41e312d896bea8a678c9bab,4d21134f3f1645ae2042d836e750ad267ee1551f,70da92cdf7ac75e071353c4551419ad02c284497,ea321a654d4b4fd6d56a1cdd6e117c62075898ee,ae68a8df586e9f3b3211e9c174b7001e57ee6aee,af67ced3b0945e8ea67434f8e66ef1e602656438,e77c766b7ab17e801c5cfa881754c392f8c13f0b:
[ruby/net-http] turn on frozen strings for net/http/header

	https://github.com/ruby/net-http/commit/a5203c9f92
	---
	 lib/net/http/header.rb | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)

	[ruby/net-http] turn on frozen strings for net/http/generic_request

	https://github.com/ruby/net-http/commit/b92ade088d
	---
	 lib/net/http/generic_request.rb | 6 +++---
	 1 file changed, 3 insertions(+), 3 deletions(-)

	[ruby/net-http] update net/http/response to be frozen string literal

	https://github.com/ruby/net-http/commit/dc3b4a75ca
	---
	 lib/net/http/response.rb | 6 +++---
	 1 file changed, 3 insertions(+), 3 deletions(-)

	[ruby/net-http] freeze rest of lib

	https://github.com/ruby/net-http/commit/455a74734a
	---
	 lib/net/http.rb             | 2 +-
	 lib/net/http/backward.rb    | 2 +-
	 lib/net/http/exceptions.rb  | 2 +-
	 lib/net/http/proxy_delta.rb | 2 +-
	 lib/net/http/request.rb     | 2 +-
	 lib/net/http/requests.rb    | 2 +-
	 lib/net/https.rb            | 2 +-
	 7 files changed, 7 insertions(+), 7 deletions(-)

	[ruby/net-http] Fix on 2.7

	https://github.com/ruby/net-http/commit/5194fd541e
	---
	 lib/net/http.rb | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)

	[ruby/net-http] use +'' everywhere

	https://github.com/ruby/net-http/commit/1077427152
	---
	 lib/net/http/generic_request.rb | 4 ++--
	 lib/net/http/response.rb        | 2 +-
	 2 files changed, 3 insertions(+), 3 deletions(-)

	[ruby/net-http] Update lib/net/http/response.rb

	@natematykiewicz's suggestion to avoid a string allocation

	https://github.com/ruby/net-http/commit/925630f227

	Co-authored-by: Nate Matykiewicz <natematykiewicz@gmail.com>
	---
	 lib/net/http/response.rb | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)

	[ruby/net-http] Update lib/net/http.rb

	@natematykiewicz's suggestion to avoid another string allocation

	https://github.com/ruby/net-http/commit/4a22c42338

	Co-authored-by: Nate Matykiewicz <natematykiewicz@gmail.com>
	---
	 lib/net/http.rb | 4 ++--
	 1 file changed, 2 insertions(+), 2 deletions(-)

	[ruby/net-http] No longer neccessary to call `String#freeze` on
	 string literals.

	See #144

	https://github.com/ruby/net-http/commit/5a986c13d3
	---
	 lib/net/http.rb                 | 2 +-
	 lib/net/http/generic_request.rb | 8 ++++----
	 2 files changed, 5 insertions(+), 5 deletions(-)
2023-12-16 10:48:39 +09:00
kazu
972cf8c91e Fix up r65505 [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-05 07:01:49 +00:00
marcandre
e859e668d2 lib/*: Prefer require_relative over require.
[#15206] [Fix GH-1976]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-02 17:52:33 +00:00
naruse
3e92b635fb Add frozen_string_literal: false for all files
When you change this to true, you may need to add more tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16 05:07:31 +00:00
hsbt
325a50fc57 * ext/openssl/*: use license instead of licence.
[fix GH-876][ci skip] Patch by @davydovanton
* lib/net/https.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-20 03:55:09 +00:00
naruse
594633fbea * lib/net/http.rb: improve rdoc.
This change the order of chapter because such overview should
  begin with simple examples.
  patched by Eric Hodel [ruby-core:33469]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 15:07:35 +00:00
nobu
c9dd4823d9 * lib: fixed typo. a patch by Sho Hashimoto in [ruby-dev:40716].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 03:30:59 +00:00
naruse
e0cdab5fff * lib/net/http, lib/net/https: move content from net/https to
net/http. [ruby-dev:39986]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-08 12:17:15 +00:00
nobu
287a34ae0d * {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
kazu
22f6e2e771 fixed typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-03 07:30:52 +00:00
aamine
ae04e36638 * lib/net/https.rb: supress syntax warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 05:20:09 +00:00
matz
e6c1752137 * lib/rdoc.rb: massive spelling correction patch from Evan Farrar
<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
2008-06-04 09:37:38 +00:00
gotoyuzo
c6920177f3 * lib/net/http.rb (Net::HTTP#connect): use
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 16:21:22 +00:00
gotoyuzo
643dc13211 * lib/net/https.rb: delete descriptions about key_file and cert_file.
fixed: [ruby-dev:25243]

* ext/openssl/lib/net/telnets.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-20 05:46:45 +00:00
matz
919f456de8 * exception message clean-up by Ian Macdonald <ian@caliban.org>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-29 07:54:38 +00:00
aamine
3eedf9156c * lib/net/http.rb: spin off https code again.
* lib/net/https.rb: new file.
* ext/openssl/lib/net/https.rb: removed.  moved to net/https with modifications.
* ext/openssl/lib/net/protocol.rb: removed.  merged with net/http.
* lib/net/protocol.rb: new class BufferedIO.
* lib/net/protocol.rb: InternetMessageIO < BufferedIO.
* lib/net/protocol.rb: BufferedIO.new takes an IO.
* lib/net/smtp.rb: follow InternetMessageIO's change.
* lib/net/pop.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-06 17:08:21 +00:00