excon 0.39.1 → 0.39.2

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
- NzE5ZjBjOGEyNjU5ZjliMWZmOGEyMjRkY2Y2ZmQ4MDk4NzNjZGI1NA==
4
+ MTU3YmU2ZWIyNTMzYjdhNTUwN2IxZGIxY2E0YmM3MTA5MTYwZWFmYQ==
5
5
  data.tar.gz: !binary |-
6
- MmQ3MGQzNTNkYzYxMDNmNDk5MGZiNmY2OWFhMDQ3NzI2NjY2MjE1Mw==
6
+ YWUwMTI4NTI1Mzk1NTA5MjExZTMyNWM3ZTg3ZTg2ZjEwMTUwZTcyYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTRhZmJlNjg0OTg3ZjY3MmE1MzJiMmYyN2QyZTBiYjY5NzgxMzA4YWY0MzAy
10
- YWU0NWJkNGE5NGI0NTY0MzQzMDQyNGUyNzYzZGYwMzQwNjNiMmFmY2Y4OTVj
11
- MDQ3ZjBiZmZhOTIxZTA5NTFiMDU0ZTFkYzdjNTlhZDVjOWE0MjU=
9
+ N2QzY2I5NmI3OWU2NTU3MmQyOTg3OTQ1NWUyYTk3ZWJhNDUzMDExYTU3ZWQ2
10
+ ZDVhZGUzNmE3OTY5MGE2MTM4Yjc0MGJkMGM0MGYxZDkzZWFlZjk5ZDU4YTgy
11
+ MjI5M2Y5YTM1MzdiNDkxZjMxNWVkZGFkYTE1OWMwNDE0N2E1ZjQ=
12
12
  data.tar.gz: !binary |-
13
- MTQ0ZWI4ODcxMWU1YjIwNjdjNTEzZGU0ZjRmYWQ2OTEzYWNjN2MzMWJkM2Mw
14
- MTllZDdlNDhhOTU1YWUyMzFmZmU1NDRiZWQ5NWQ1NDQ5NzNkODljZDc5OGFj
15
- ZGU4MjA3MWY2NWI0NmZhYzMzMzc5OTFkNTA1NjI3OWZiMmVhMzc=
13
+ NDE3MzJkNDFkNjc5ZTc2Y2YzOThjMWZjODczM2M3MWQ5NGM2MjY0ZTgwMmEw
14
+ YWUzZGZhYzk0YTFlYjQyZmQ3NjlkNzIwYjE3MmE5MGRmMTIxMzk5YjI2OTRm
15
+ NWFlM2E5MjgxNTQyZTg5MGMzOTEyYWVjZjI0MzY2ZDg3OTQ1MDc=
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- excon (0.39.1)
4
+ excon (0.39.2)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -1,3 +1,8 @@
1
+ 0.39.2 08/04/2014
2
+ =================
3
+
4
+ respect both ca_file/ca_path when both present
5
+
1
6
  0.39.1 08/04/2014
2
7
  =================
3
8
 
@@ -13,7 +13,7 @@ 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.1'
16
+ s.version = '0.39.2'
17
17
  s.date = '2014-08-04'
18
18
  s.rubyforge_project = 'excon'
19
19
 
@@ -1,6 +1,6 @@
1
1
  module Excon
2
2
 
3
- VERSION = '0.39.1'
3
+ VERSION = '0.39.2'
4
4
 
5
5
  CR_NL = "\r\n"
6
6
 
@@ -29,11 +29,15 @@ module Excon
29
29
  # turn verification on
30
30
  ssl_context.verify_mode = OpenSSL::SSL::VERIFY_PEER
31
31
 
32
+ if ca_file = ENV['SSL_CERT_FILE'] || @data[:ssl_ca_file]
33
+ ssl_context.ca_file = ca_file
34
+ end
32
35
  if ca_path = ENV['SSL_CERT_DIR'] || @data[:ssl_ca_path]
33
36
  ssl_context.ca_path = ca_path
34
- elsif ca_file = ENV['SSL_CERT_FILE'] || @data[:ssl_ca_file]
35
- ssl_context.ca_file = ca_file
36
- else # attempt default, fallback to bundled
37
+ end
38
+
39
+ # no defaults, fallback to bundled
40
+ unless ca_file || ca_path
37
41
  ssl_context.cert_store = OpenSSL::X509::Store.new
38
42
  ssl_context.cert_store.set_default_paths
39
43
 
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.1
4
+ version: 0.39.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - dpiddy (Dan Peterson)