net-http-persistent 2.9.3 → 2.9.4
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 +4 -4
- checksums.yaml.gz.sig +2 -2
- data.tar.gz.sig +0 -0
- data/History.txt +5 -0
- data/lib/net/http/persistent.rb +3 -6
- data/test/test_net_http_persistent.rb +6 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 21b9c2d72e25672250e7d4544bed635d05a583cd
|
|
4
|
+
data.tar.gz: 8baa746d3b463cc46282e93e1c95fea48ce34de7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34d31b4bb74a92791b8091bec2e098935440b522a22a00cf189a7d48652415a4729496758c30af51ce38cd1c227b3414040cb3396b348dcc355634f5fb1d012d
|
|
7
|
+
data.tar.gz: 6afc70cd26e21e4d7fbce7d5531543ba55df0da22dd2b4ac5f697b34290f567167afc3a76a98fd7faa351e539f94cf1d2dae0295f0840036d482a6537bd0271f
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
�
|
|
2
|
-
|
|
1
|
+
.Nj�^K�^;Y�Q�-_�Q�a�Jm�cݭ���|���t�W� P��A{��X��'5�]1��]Ǵt���H�ҫu�Y���
|
|
2
|
+
?�
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/History.txt
CHANGED
data/lib/net/http/persistent.rb
CHANGED
|
@@ -203,7 +203,7 @@ class Net::HTTP::Persistent
|
|
|
203
203
|
##
|
|
204
204
|
# The version of Net::HTTP::Persistent you are using
|
|
205
205
|
|
|
206
|
-
VERSION = '2.9.
|
|
206
|
+
VERSION = '2.9.4'
|
|
207
207
|
|
|
208
208
|
##
|
|
209
209
|
# Exceptions rescued for automatic retry on ruby 2.0.0. This overlaps with
|
|
@@ -864,14 +864,11 @@ class Net::HTTP::Persistent
|
|
|
864
864
|
@no_proxy.clear
|
|
865
865
|
|
|
866
866
|
if @proxy_uri then
|
|
867
|
-
@proxy_uri.user = unescape @proxy_uri.user
|
|
868
|
-
@proxy_uri.password = unescape @proxy_uri.password
|
|
869
|
-
|
|
870
867
|
@proxy_args = [
|
|
871
868
|
@proxy_uri.host,
|
|
872
869
|
@proxy_uri.port,
|
|
873
|
-
@proxy_uri.user,
|
|
874
|
-
@proxy_uri.password,
|
|
870
|
+
unescape(@proxy_uri.user),
|
|
871
|
+
unescape(@proxy_uri.password),
|
|
875
872
|
]
|
|
876
873
|
|
|
877
874
|
@proxy_connection_id = [nil, *@proxy_args].join ':'
|
|
@@ -507,13 +507,15 @@ class TestNetHttpPersistent < Minitest::Test
|
|
|
507
507
|
|
|
508
508
|
def test_connection_for_proxy_unescaped
|
|
509
509
|
uri = URI.parse 'http://proxy.example'
|
|
510
|
-
uri.user
|
|
511
|
-
uri.password = 'muf%
|
|
510
|
+
uri.user = 'john%40doe'
|
|
511
|
+
uri.password = 'muf%3Afins'
|
|
512
|
+
uri.freeze
|
|
512
513
|
|
|
513
514
|
http = Net::HTTP::Persistent.new nil, uri
|
|
515
|
+
c = http.connection_for @uri
|
|
514
516
|
|
|
515
|
-
|
|
516
|
-
|
|
517
|
+
assert_includes conns[1].keys,
|
|
518
|
+
'example.com:80:proxy.example:80:john@doe:muf:fins'
|
|
517
519
|
end
|
|
518
520
|
|
|
519
521
|
def test_connection_for_proxy_host_down
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: net-http-persistent
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.9.
|
|
4
|
+
version: 2.9.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Hodel
|
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
|
30
30
|
KDyY1VIazVgoC8XvR4h/95/iScPiuglzA+DBG1hip1xScAtw05BrXyUNrc9CEMYU
|
|
31
31
|
wgF94UVoHRp6ywo8I7NP3HcwFQDFNEZPNGXsng==
|
|
32
32
|
-----END CERTIFICATE-----
|
|
33
|
-
date: 2014-02-
|
|
33
|
+
date: 2014-02-10 00:00:00.000000000 Z
|
|
34
34
|
dependencies:
|
|
35
35
|
- !ruby/object:Gem::Dependency
|
|
36
36
|
name: minitest
|
metadata.gz.sig
CHANGED
|
Binary file
|