nsq-ruby 2.0.3 → 2.0.4

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: 9dc9c8d48a3ec617bbae37bb043f7450a8206ce1
4
- data.tar.gz: 28111fd4130fd0173b978648e88c68793217976a
3
+ metadata.gz: a6a79b53902f96dfbac897e8d42c72f9b77da5b8
4
+ data.tar.gz: 8ae3a1e0cbac66b12e535f9bb63174196aab6c2e
5
5
  SHA512:
6
- metadata.gz: b01f2ffb835a61b597493da03b97e739e5991990bf715dfcf2711bcd5228c0335c6ef207a5678c88719e58397c19ab0b76800725037c2e42630409ebd3ef797d
7
- data.tar.gz: 5659f9c7ae6e22223eabf9358e3f146fac66bd741945b8f914cd78c477d81f13d02a8e349a438c3b6085eb551540bcc9f81a008d92b5a6fb4a4b81980f44f9eb
6
+ metadata.gz: feabe84729269c1b866c2cdc483bc88aae2243d438c23371eccec15ee63b69e7045728c73c9bb35e97e1c176b340e7fa1d01445cf69e5274782b0b4987abf599
7
+ data.tar.gz: c0835409b4b270106eb8a9f091997b1a3db97cf07c7b5557c893c359a42b86bebff51fcf9084719a6b23505b04485f1125f556e556c0bc898e40c44796f5a77a
data/README.md CHANGED
@@ -376,6 +376,7 @@ millions of messages a day.
376
376
  - Thomas O'Neil ([@alieander](https://github.com/alieander))
377
377
  - Unbekandt Léo ([@soulou](https://github.com/Soulou))
378
378
  - Matthias Schneider ([@mschneider82](https://github.com/mschneider82))
379
+ - Lukas Eklund ([@leklund](https://github.com/leklund))
379
380
 
380
381
 
381
382
  ## MIT License
@@ -357,6 +357,7 @@ module Nsq
357
357
  cls if connected?
358
358
  stop_read_loop
359
359
  stop_write_loop
360
+ @socket.close if @socket
360
361
  @socket = nil
361
362
  @connected = false
362
363
  end
@@ -373,6 +374,7 @@ module Nsq
373
374
  def upgrade_to_ssl_socket
374
375
  ssl_opts = [@socket, openssl_context].compact
375
376
  @socket = OpenSSL::SSL::SSLSocket.new(*ssl_opts)
377
+ @socket.sync_close = true
376
378
  @socket.connect
377
379
  end
378
380
 
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 = 3
5
+ PATCH = 4
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.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wistia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-22 00:00:00.000000000 Z
11
+ date: 2016-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler