nsq-ruby 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33dae8d437e4db3f3c66e21e75cc9b592fdd5ab8
4
- data.tar.gz: af3289a58da6109f12f516d6d9228142e72f7903
3
+ metadata.gz: 784760540970f7a72dc0e168f3727221b82ca214
4
+ data.tar.gz: 533cfa8fd3dadb9dde8c6ee25aff6ef6eac8d50c
5
5
  SHA512:
6
- metadata.gz: cafaa033cccd00f6081fdc732eef57d99ddae1e196e4de2d2dea2dd67a8a228b0f67b3a9e57cba5d2d7a58f7966123b1112d5206889418b1eb048282b7c509bb
7
- data.tar.gz: f825b718705b8d3ebd885206ca591c7b503e9c87c8847643c04d161d6706265d49df6021383350eaad91dd27d73007dfdbb3188105fb176754258745bf13ac75
6
+ metadata.gz: f0298fa85dd7a438539770e5e3d14c5f96d0003892c28ac675fd62042cdf80c712c35cefa8d78d52d432659e9d0432a737daa44197f257c273ea281c384f6f9e
7
+ data.tar.gz: 5abe4bde5bbacb4a9ccb96efc948370afd9902094ce4432d762dffd62fbfab78b28ee6445869c5789f03d5ca888396b7b8b49d0fd1a5bdb0596c73461f03d97a
@@ -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.open(@tls_options[:certificate]))
384
- context.key = OpenSSL::PKey::RSA.new(File.open(@tls_options[:key]))
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.open(@tls_options[:ca_certificate])).to_pem
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
@@ -2,7 +2,7 @@ module Nsq
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
- PATCH = 1
5
+ PATCH = 2
6
6
  BUILD = nil
7
7
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
8
8
  end
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.1
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-18 00:00:00.000000000 Z
11
+ date: 2016-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler