httpclient 2.8.2.3 → 2.8.2.4
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 +2 -1
- data/lib/httpclient/version.rb +1 -1
- data/test/test_ssl.rb +5 -0
- 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: 241dd999985ce751afe54cf45ca1d2df8a4b05c7
|
4
|
+
data.tar.gz: 9a4021e0b3f9f1a9a40ecb56f48b139217d51621
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d306ba29a27b6e1e8507141b83a162c8b4c97ac03b4daf61982883be51ef0831cd79ff1d7e90047c5cda4ca1f775d6609d645a01a7ce289cb7e2a99519637d6
|
7
|
+
data.tar.gz: c3fe5f9e0e6ab7b2e4afd0560ff2ec8f01e736d18dc66e431d6d3f1b89481e20acee6d4d4eadb8c2a6d03c27b6ecc3f0175e84dccaefa74e461615f579f93716
|
@@ -56,8 +56,9 @@ class HTTPClient
|
|
56
56
|
[:add_cert, :add_file, :add_path].each do |m|
|
57
57
|
wrapped[m] = instance_method(m)
|
58
58
|
define_method(m) do |cert|
|
59
|
-
wrapped[m].bind(self).call(cert)
|
59
|
+
res = wrapped[m].bind(self).call(cert)
|
60
60
|
@_httpclient_cert_store_items << cert
|
61
|
+
res
|
61
62
|
end
|
62
63
|
end
|
63
64
|
end
|
data/lib/httpclient/version.rb
CHANGED
data/test/test_ssl.rb
CHANGED
@@ -383,6 +383,11 @@ e61RBaxk5OHOA0bLtvJblV6NL72ZEZhX60wAWbrOPhpT
|
|
383
383
|
@client.ssl_config.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
384
384
|
end
|
385
385
|
|
386
|
+
def test_x509_store_add_cert_prepend
|
387
|
+
store = OpenSSL::X509::Store.new
|
388
|
+
assert_equal(store, store.add_cert(OpenSSL::X509::Certificate.new(VERIFY_TEST_CERT_LOCALHOST)))
|
389
|
+
end
|
390
|
+
|
386
391
|
private
|
387
392
|
|
388
393
|
def cert(filename)
|
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.8.2.
|
4
|
+
version: 2.8.2.4
|
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-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: nahi@ruby-lang.org
|