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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76aaf8605d32987924b266d0ac33d7f6780dcfc1
4
- data.tar.gz: 9ca40eda6f563b3074b229eea7339001e0a7b603
3
+ metadata.gz: 241dd999985ce751afe54cf45ca1d2df8a4b05c7
4
+ data.tar.gz: 9a4021e0b3f9f1a9a40ecb56f48b139217d51621
5
5
  SHA512:
6
- metadata.gz: fd44ec70d82b57616b112eb40fadd6c85a49eea6b56b3fe080ec737dd232313c32d87956c68c0d66a9afdaf335878ebac56f1602a702555662946ada92eb5a43
7
- data.tar.gz: fe7f8c13ce11220231943a43634f0cba2895e92330d483b9dde8fc2138b017371d4db2f43f9db053d2a5038b514984c6263251265d6ad831f0fdfc1f09644741
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
@@ -1,3 +1,3 @@
1
1
  class HTTPClient
2
- VERSION = '2.8.2.3'
2
+ VERSION = '2.8.2.4'
3
3
  end
@@ -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.3
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-08-28 00:00:00.000000000 Z
11
+ date: 2016-09-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: nahi@ruby-lang.org