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 +8 -8
- data/Gemfile.lock +1 -1
- data/changelog.txt +5 -0
- data/excon.gemspec +1 -1
- data/lib/excon/constants.rb +1 -1
- data/lib/excon/ssl_socket.rb +7 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTU3YmU2ZWIyNTMzYjdhNTUwN2IxZGIxY2E0YmM3MTA5MTYwZWFmYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWUwMTI4NTI1Mzk1NTA5MjExZTMyNWM3ZTg3ZTg2ZjEwMTUwZTcyYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2QzY2I5NmI3OWU2NTU3MmQyOTg3OTQ1NWUyYTk3ZWJhNDUzMDExYTU3ZWQ2
|
10
|
+
ZDVhZGUzNmE3OTY5MGE2MTM4Yjc0MGJkMGM0MGYxZDkzZWFlZjk5ZDU4YTgy
|
11
|
+
MjI5M2Y5YTM1MzdiNDkxZjMxNWVkZGFkYTE1OWMwNDE0N2E1ZjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDE3MzJkNDFkNjc5ZTc2Y2YzOThjMWZjODczM2M3MWQ5NGM2MjY0ZTgwMmEw
|
14
|
+
YWUzZGZhYzk0YTFlYjQyZmQ3NjlkNzIwYjE3MmE5MGRmMTIxMzk5YjI2OTRm
|
15
|
+
NWFlM2E5MjgxNTQyZTg5MGMzOTEyYWVjZjI0MzY2ZDg3OTQ1MDc=
|
data/Gemfile.lock
CHANGED
data/changelog.txt
CHANGED
data/excon.gemspec
CHANGED
@@ -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.
|
16
|
+
s.version = '0.39.2'
|
17
17
|
s.date = '2014-08-04'
|
18
18
|
s.rubyforge_project = 'excon'
|
19
19
|
|
data/lib/excon/constants.rb
CHANGED
data/lib/excon/ssl_socket.rb
CHANGED
@@ -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
|
-
|
35
|
-
|
36
|
-
|
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
|
|