net-http-persistent 2.9.3 → 2.9.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6486434d410797711f183ac5f05b2549d36abb07
4
- data.tar.gz: e9b3fc2c439abd9c3d948e07981854b22c2bb3f7
3
+ metadata.gz: 21b9c2d72e25672250e7d4544bed635d05a583cd
4
+ data.tar.gz: 8baa746d3b463cc46282e93e1c95fea48ce34de7
5
5
  SHA512:
6
- metadata.gz: 129d67362f41194c03d6ef28ac6a6964b54be83c7f4eead857b445afdc4a0c6f64f99153af45f9d3453266869db7b2f12a0db033b4edda3fa8dd747448462a0b
7
- data.tar.gz: e4cf01fdfaadc12b9f2c9af916e6c62b4001b8256df14eea9a92ea4297335aceffa67d1a6a686f01dcd8f4932adc2b2ca0dc567fd735bdfa5ce6885f8d2f49b1
6
+ metadata.gz: 34d31b4bb74a92791b8091bec2e098935440b522a22a00cf189a7d48652415a4729496758c30af51ce38cd1c227b3414040cb3396b348dcc355634f5fb1d012d
7
+ data.tar.gz: 6afc70cd26e21e4d7fbce7d5531543ba55df0da22dd2b4ac5f697b34290f567167afc3a76a98fd7faa351e539f94cf1d2dae0295f0840036d482a6537bd0271f
@@ -1,2 +1,2 @@
1
- Ӡ���}P��9Zd=.^�� y����+�@��ٴ}��ো�d��t����_B�=Z��@%}%^ts:z���� V��,�ח=2o�W���jzV'"���q�?A5t
2
- #v�ПD�m�||ge���I#1 ,�������7��,�s����x���D�c[�;�E����^�Q�fr����^�NQ��+�7���Ӿ��J�{��� SƧ!�{��N������9J��1.L�P*C�``J
1
+ .Nj�^K�^;YQ�-_�QaJmcݭ���|���t�W� P��A{��X��'5�]1��]Ǵt���H�ҫu�Y���
2
+ ?�
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,8 @@
1
+ === 2.9.4 / 2014-02-10
2
+
3
+ * Bug fixes
4
+ * Improve proxy escaping from 2.9.2. Pull request #59 by Mislav Marohnić.
5
+
1
6
  === 2.9.3 / 2014-02-06
2
7
 
3
8
  * Bug fixes
@@ -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.3'
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 = 'john%24doe'
511
- uri.password = 'muf%24fins'
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
- assert_equal 'john$doe', http.proxy_uri.user
516
- assert_equal 'muf$fins', http.proxy_uri.password
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.3
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-07 00:00:00.000000000 Z
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