nsq-ruby 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nsq/connection.rb +3 -3
- data/lib/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: 784760540970f7a72dc0e168f3727221b82ca214
|
4
|
+
data.tar.gz: 533cfa8fd3dadb9dde8c6ee25aff6ef6eac8d50c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0298fa85dd7a438539770e5e3d14c5f96d0003892c28ac675fd62042cdf80c712c35cefa8d78d52d432659e9d0432a737daa44197f257c273ea281c384f6f9e
|
7
|
+
data.tar.gz: 5abe4bde5bbacb4a9ccb96efc948370afd9902094ce4432d762dffd62fbfab78b28ee6445869c5789f03d5ca888396b7b8b49d0fd1a5bdb0596c73461f03d97a
|
data/lib/nsq/connection.rb
CHANGED
@@ -380,10 +380,10 @@ module Nsq
|
|
380
380
|
return unless @tls_options
|
381
381
|
|
382
382
|
context = OpenSSL::SSL::SSLContext.new
|
383
|
-
context.cert = OpenSSL::X509::Certificate.new(File.
|
384
|
-
context.key = OpenSSL::PKey::RSA.new(File.
|
383
|
+
context.cert = OpenSSL::X509::Certificate.new(File.read(@tls_options[:certificate]))
|
384
|
+
context.key = OpenSSL::PKey::RSA.new(File.read(@tls_options[:key]))
|
385
385
|
if @tls_options[:ca_certificate]
|
386
|
-
context.ca_file = OpenSSL::X509::Certificate.new(File.
|
386
|
+
context.ca_file = OpenSSL::X509::Certificate.new(File.read(@tls_options[:ca_certificate])).to_pem
|
387
387
|
end
|
388
388
|
context
|
389
389
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nsq-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wistia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|