net-http 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c03edd74b23392c1b0f19f66370d554d8f1609fe7353165388f35055d9a24e1c
4
- data.tar.gz: f5b94529123018fb71d778be8ae2675f16d3f6e49d99a19da9303ad1f23bcea2
3
+ metadata.gz: 91e4788b01779aad8b10d32588d21f857d66a5b9d752bd4226b8b624b651877d
4
+ data.tar.gz: 222d82ca817154eef246ad62f68c571deb2bfb6bc5bcfceca185066ac7773ff0
5
5
  SHA512:
6
- metadata.gz: f6f7879eb1abda08f6ffbdeec8918af799fbea576008d3ed1902a9c2c9a97b9ede394fdc50dccee513c413a1427e4a37a8db5623d8fdcec0c2e496ad661cf99e
7
- data.tar.gz: f66425b565071ed067b1786e2553819e92f9243db950d6e57298299df43cb7c957dc7b29e1604cf6f227f43cda8957a3e97c6038d4f52ad678ad13226f9f1c66
6
+ metadata.gz: 5f1d6bbc6f5cea9b1b27c93dc5b2aba277e3fa6919aecc3044b69e5dd1a628b2e6a2ccc4074c3b6d3ec2bc98b59a47ce6fa6b7e340cbb7a892633804347885ff
7
+ data.tar.gz: 45aacf67fd2756870eb98199970d0bcd584547a5731e457fcce93304c93cdbe77c9c2a3a633395215e39dee657b912f542b459cccab4a05fe913af2819878952
data/lib/net/http.rb CHANGED
@@ -730,7 +730,7 @@ module Net #:nodoc:
730
730
  class HTTP < Protocol
731
731
 
732
732
  # :stopdoc:
733
- VERSION = "0.5.0"
733
+ VERSION = "0.6.0"
734
734
  HTTPVersion = '1.1'
735
735
  begin
736
736
  require 'zlib'
@@ -2559,6 +2559,11 @@ module Net #:nodoc:
2559
2559
  alias_method :D, :debug
2560
2560
  end
2561
2561
 
2562
+ # for backward compatibility until Ruby 3.5
2563
+ # https://bugs.ruby-lang.org/issues/20900
2564
+ # https://github.com/bblimke/webmock/pull/1081
2565
+ HTTPSession = HTTP
2566
+ deprecate_constant :HTTPSession
2562
2567
  end
2563
2568
 
2564
2569
  require_relative 'http/exceptions'
@@ -2573,5 +2578,3 @@ require_relative 'http/response'
2573
2578
  require_relative 'http/responses'
2574
2579
 
2575
2580
  require_relative 'http/proxy_delta'
2576
-
2577
- require_relative 'http/backward'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - NARUSE, Yui
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-07 00:00:00.000000000 Z
11
+ date: 2024-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uri
@@ -41,7 +41,6 @@ files:
41
41
  - doc/net-http/examples.rdoc
42
42
  - doc/net-http/included_getters.rdoc
43
43
  - lib/net/http.rb
44
- - lib/net/http/backward.rb
45
44
  - lib/net/http/exceptions.rb
46
45
  - lib/net/http/generic_request.rb
47
46
  - lib/net/http/header.rb
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: true
2
- # for backward compatibility
3
-
4
- # :enddoc:
5
-
6
- class Net::HTTP
7
- ProxyMod = ProxyDelta
8
- deprecate_constant :ProxyMod
9
- end
10
-
11
- module Net::NetPrivate
12
- HTTPRequest = ::Net::HTTPRequest
13
- deprecate_constant :HTTPRequest
14
- end
15
-
16
- module Net
17
- HTTPSession = HTTP
18
-
19
- HTTPInformationCode = HTTPInformation
20
- HTTPSuccessCode = HTTPSuccess
21
- HTTPRedirectionCode = HTTPRedirection
22
- HTTPRetriableCode = HTTPRedirection
23
- HTTPClientErrorCode = HTTPClientError
24
- HTTPFatalErrorCode = HTTPClientError
25
- HTTPServerErrorCode = HTTPServerError
26
- HTTPResponseReceiver = HTTPResponse
27
-
28
- HTTPResponceReceiver = HTTPResponse # Typo since 2001
29
-
30
- deprecate_constant :HTTPSession,
31
- :HTTPInformationCode,
32
- :HTTPSuccessCode,
33
- :HTTPRedirectionCode,
34
- :HTTPRetriableCode,
35
- :HTTPClientErrorCode,
36
- :HTTPFatalErrorCode,
37
- :HTTPServerErrorCode,
38
- :HTTPResponseReceiver,
39
- :HTTPResponceReceiver
40
- end