httpclient 2.7.1 → 2.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/httpclient/ssl_config.rb +3 -1
- data/lib/httpclient/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3efa89267c49ad8538e958b70fa1d5ad60a51f14
|
4
|
+
data.tar.gz: fddc29793643f39d3d29de2bda66a096353686e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f31fd63927c5e74d67fd57710e9a8e8528ef4eeee5ee03accac31629af74ccc19dca082df5d36fb2827e3713d9e36f1e6e444472f56111c9c32805df9a757f1
|
7
|
+
data.tar.gz: a74ae21b44d061adc75c34488de4cde93c55f3e5cb98f22871e7f31cd5fec66f954339a664cd6576b8f796dbec28a9e6f48815e8b34331cafdb5f5fb74b3abe8
|
@@ -204,6 +204,9 @@ class HTTPClient
|
|
204
204
|
#
|
205
205
|
# Calling this method resets all existing sessions.
|
206
206
|
def add_trust_ca(trust_ca_file_or_hashed_dir)
|
207
|
+
unless File.exist?(trust_ca_file_or_hashed_dir)
|
208
|
+
trust_ca_file_or_hashed_dir = File.join(File.dirname(__FILE__), trust_ca_file_or_hashed_dir)
|
209
|
+
end
|
207
210
|
@cacerts_loaded = true # avoid lazy override
|
208
211
|
add_trust_ca_to_store(@cert_store, trust_ca_file_or_hashed_dir)
|
209
212
|
@cert_store_items << trust_ca_file_or_hashed_dir
|
@@ -447,7 +450,6 @@ class HTTPClient
|
|
447
450
|
(ver.start_with?('OpenSSL ') && ver >= 'OpenSSL 1.0.2d') || defined?(JRuby)
|
448
451
|
filename = 'cacert.pem'
|
449
452
|
else
|
450
|
-
warning("RSA 1024 bit CA certificates are loaded due to old openssl compatibility")
|
451
453
|
filename = 'cacert1024.pem'
|
452
454
|
end
|
453
455
|
file = File.join(File.dirname(__FILE__), filename)
|
data/lib/httpclient/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httpclient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: nahi@ruby-lang.org
|