net-http-persistent 2.9.2 → 2.9.3

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: d97c47fe4e98a924fe059c0214f345bbc9e1ee1d
4
- data.tar.gz: ef1438b224c5d17d5f1d94f11fecbd5527b57909
3
+ metadata.gz: 6486434d410797711f183ac5f05b2549d36abb07
4
+ data.tar.gz: e9b3fc2c439abd9c3d948e07981854b22c2bb3f7
5
5
  SHA512:
6
- metadata.gz: a9c9f30e712239d8e75af6ac42ec184d89ae5fff1c090ac27279e655dcafcec083ad4eeb1fc50c077804dc6a0779b20b09f622fba45a31bc45421f75fdb62f95
7
- data.tar.gz: b51b2a2bf007809033ded4b0d404297b6fdc329e65d36405aca53c352cc5840490f88d3d5a6f232b26ec6159835967fa8687485ab2075c9dddec671cb49cae81
6
+ metadata.gz: 129d67362f41194c03d6ef28ac6a6964b54be83c7f4eead857b445afdc4a0c6f64f99153af45f9d3453266869db7b2f12a0db033b4edda3fa8dd747448462a0b
7
+ data.tar.gz: e4cf01fdfaadc12b9f2c9af916e6c62b4001b8256df14eea9a92ea4297335aceffa67d1a6a686f01dcd8f4932adc2b2ca0dc567fd735bdfa5ce6885f8d2f49b1
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 2.9.3 / 2014-02-06
2
+
3
+ * Bug fixes
4
+ * Fix breakage in 2.9.2 for users without proxies. Pull request #56 by
5
+ Yoshihiro TAKAHARA (merged), #57 by ChuckLin, #58 by Kenny Meyer.
6
+
1
7
  === 2.9.2 / 2014-02-05
2
8
 
3
9
  * 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.2'
206
+ VERSION = '2.9.3'
207
207
 
208
208
  ##
209
209
  # Exceptions rescued for automatic retry on ruby 2.0.0. This overlaps with
@@ -863,10 +863,10 @@ class Net::HTTP::Persistent
863
863
 
864
864
  @no_proxy.clear
865
865
 
866
- @proxy_uri.user = unescape @proxy_uri.user
867
- @proxy_uri.password = unescape @proxy_uri.password
868
-
869
866
  if @proxy_uri then
867
+ @proxy_uri.user = unescape @proxy_uri.user
868
+ @proxy_uri.password = unescape @proxy_uri.password
869
+
870
870
  @proxy_args = [
871
871
  @proxy_uri.host,
872
872
  @proxy_uri.port,
@@ -805,6 +805,15 @@ class TestNetHttpPersistent < Minitest::Test
805
805
  assert_equal 1, @http.ssl_generation, 'ssl_generation'
806
806
  end
807
807
 
808
+ def test_proxy_equals_nil
809
+ @http.proxy = nil
810
+
811
+ assert_equal nil, @http.proxy_uri
812
+
813
+ assert_equal 1, @http.generation, 'generation'
814
+ assert_equal 1, @http.ssl_generation, 'ssl_generation'
815
+ end
816
+
808
817
  def test_proxy_equals_uri
809
818
  proxy_uri = URI.parse 'http://proxy.example'
810
819
 
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.2
4
+ version: 2.9.3
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-06 00:00:00.000000000 Z
33
+ date: 2014-02-07 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: minitest
metadata.gz.sig CHANGED
Binary file