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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16f7baffe102a626c3028dcaad8bb4cf7824ebec
4
- data.tar.gz: d0a2b4c9e430503c59923422df7b59b94d6a798f
3
+ metadata.gz: 3efa89267c49ad8538e958b70fa1d5ad60a51f14
4
+ data.tar.gz: fddc29793643f39d3d29de2bda66a096353686e0
5
5
  SHA512:
6
- metadata.gz: 9e1aaf56532a5932e483f23757e1e3648943dee5c198be8e1e59fbd38b9c77550b34e9e46bf2cbf6339afbaa30314efe8eef7907ca146fdb44518d022b8c86e7
7
- data.tar.gz: bf1e76a63200ea981220c1f94e3e5c834fbe5cbba991e9463ef06efdfafc5441b0ac57461cea6d62cb377ee52c72de2bf8746d9e9b667a59b55a8a024335ae5b
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)
@@ -1,3 +1,3 @@
1
1
  class HTTPClient
2
- VERSION = '2.7.1'
2
+ VERSION = '2.7.2'
3
3
  end
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.1
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-01-01 00:00:00.000000000 Z
11
+ date: 2016-04-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: nahi@ruby-lang.org