excon 0.39.2 → 0.39.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of excon might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTU3YmU2ZWIyNTMzYjdhNTUwN2IxZGIxY2E0YmM3MTA5MTYwZWFmYQ==
4
+ NjUyYzk4Mzc5ZWNhZjc2ZmY1OTFhNjEwMWZjMDQyMGY2MWZmZGFhMg==
5
5
  data.tar.gz: !binary |-
6
- YWUwMTI4NTI1Mzk1NTA5MjExZTMyNWM3ZTg3ZTg2ZjEwMTUwZTcyYg==
6
+ YzhkZWViOWYyNjY1ZGRhYmVmODY4YTk0N2M5YWI3NmQ3NWUxMGFkZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2QzY2I5NmI3OWU2NTU3MmQyOTg3OTQ1NWUyYTk3ZWJhNDUzMDExYTU3ZWQ2
10
- ZDVhZGUzNmE3OTY5MGE2MTM4Yjc0MGJkMGM0MGYxZDkzZWFlZjk5ZDU4YTgy
11
- MjI5M2Y5YTM1MzdiNDkxZjMxNWVkZGFkYTE1OWMwNDE0N2E1ZjQ=
9
+ ZTVlMTFiNjFlNDEzNWI0NGNmZWJhNmU4ODYwYmI2ZDc3ZDNhOGY0ZTllMGY1
10
+ YWQ2NWFlOGZmM2I5MjJjZWI5M2Q5MTNlNmNjNjY4M2MwMTljZDk3ZTgwNTlk
11
+ YzU5NTc2Zjg5YmMxM2U2YjY1YzAyMTQ1ZjM4NjM4MWVkNWNmZmQ=
12
12
  data.tar.gz: !binary |-
13
- NDE3MzJkNDFkNjc5ZTc2Y2YzOThjMWZjODczM2M3MWQ5NGM2MjY0ZTgwMmEw
14
- YWUzZGZhYzk0YTFlYjQyZmQ3NjlkNzIwYjE3MmE5MGRmMTIxMzk5YjI2OTRm
15
- NWFlM2E5MjgxNTQyZTg5MGMzOTEyYWVjZjI0MzY2ZDg3OTQ1MDc=
13
+ MjI0Yzg2MDY1MWQ2YWYwMTg1MGFiYTZmOGUwOTVmMjQzZGZiZTAzNjY0Nzhi
14
+ N2EzNGU3YTRmYmJkYmRlZDllMzcyMzI2MDRlZTNiNWQyZDViNTQ4YjAzY2Q4
15
+ YzVkNzQ3ZTZiOTE4MmViZTg2NDZmZWYzY2Q3MjE0NmY1NThmZWY=
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- excon (0.39.2)
4
+ excon (0.39.3)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -1,3 +1,8 @@
1
+ 0.39.3 08/05/2014
2
+ =================
3
+
4
+ fix for nil and/or unknown proxy values
5
+
1
6
  0.39.2 08/04/2014
2
7
  =================
3
8
 
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'excon'
16
- s.version = '0.39.2'
17
- s.date = '2014-08-04'
16
+ s.version = '0.39.3'
17
+ s.date = '2014-08-05'
18
18
  s.rubyforge_project = 'excon'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
@@ -399,6 +399,10 @@ module Excon
399
399
  end
400
400
 
401
401
  case @data[:proxy]
402
+ when nil
403
+ @data.delete(:proxy)
404
+ when Hash
405
+ # no processing needed
402
406
  when String
403
407
  uri = URI.parse(@data[:proxy])
404
408
  unless uri.host && uri.port && uri.scheme
@@ -415,6 +419,8 @@ module Excon
415
419
  if uri.user
416
420
  @data[:proxy][:user] = uri.user
417
421
  end
422
+ else
423
+ raise Excon::Errors::ProxyParseError, "Proxy is invalid"
418
424
  end
419
425
 
420
426
  if @data.has_key?(:proxy) && @data[:scheme] == 'http'
@@ -1,6 +1,6 @@
1
1
  module Excon
2
2
 
3
- VERSION = '0.39.2'
3
+ VERSION = '0.39.3'
4
4
 
5
5
  CR_NL = "\r\n"
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.2
4
+ version: 0.39.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - dpiddy (Dan Peterson)
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-08-04 00:00:00.000000000 Z
13
+ date: 2014-08-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport