allq 0.2.9 → 0.3.0

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: e89dbc59e26a596fb3727ea8dbacac30dfdfec75
4
- data.tar.gz: e0e98d3aa58b2e3872e9d4f70658f5d7f8618cbf
3
+ metadata.gz: 93d7b00a38fc056c4bfb39a5b4a684a8d6115772
4
+ data.tar.gz: c85b507519407f88205245fe4e66dc563ca1e34f
5
5
  SHA512:
6
- metadata.gz: 39c1ff67a85ba99409034f72bd0b634868a631c68cc8c81ba7bc8c1a730fa3ac5b7340a692bbac96ab9021c3257f77913c232914f6d59769f23924e1b7ebcd61
7
- data.tar.gz: 2eb4f2b3b6f34cab2fa7bd9f715a54cb78f202d58174bc93879577a449ba48f4dc37cb84e3f021aa556dc7e89e811a50c92dd1fe526d632766f5ee8eb8175a77
6
+ metadata.gz: e36806e3ddd9bf311b297d1ff51e925681b1a6ac7d9d501a5d3240352ee29fe48d8fdfa785288cdf3f3ea72f2ff366c65ed8ee9137316ff7f233bbd077cac221
7
+ data.tar.gz: fed0f81fad48445e44724576411483c4143e617414740d00d9532c882d2f4bd57099c9151e9eff9c146980412aecd3faea2d38dd004c6bdc410ece2b21442a33
@@ -48,7 +48,7 @@ class AllQ
48
48
  def transmit(command, options={}, &block)
49
49
  _with_retry(options[:retry_interval], options[:init]) do
50
50
  @mutex.synchronize do
51
- _raise_not_connected! unless @connection
51
+ _raise_not_connected! unless @connection && !@connection.closed?
52
52
  @connection.puts(command.to_s)
53
53
  res = @connection.readline
54
54
  yield block.call(res)
data/lib/allq/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Allq
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason