gilmour-em-hiredis 0.3.1 → 0.3.2

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: bff9d2879a4dab3c06c811c8f5603ec6d410d833
4
- data.tar.gz: 47a7690848aabc0a1fdb8a23dc4116d75e3c8bb1
3
+ metadata.gz: 2374a4e27d81a3769c7e6600d174b6a9cdedf1a6
4
+ data.tar.gz: b9989e1ae12bc6cb0d228f94857c75842a5ecd50
5
5
  SHA512:
6
- metadata.gz: 8a73672bf42045e373eba238a40e8104624ebcd0c72b50e4cabe21278c8a8e4eed3779e6f1720dd706839f4196e80877c9b5946fa3f4546f80857310ccf0e038
7
- data.tar.gz: df0fe23e77d9c72e9e6ce727c393f5445ca2567735f4bcc70c4751daefc177117edb914d1acc8cde0b7f1a73b8f1869bffb5d49df909a9f7cd82276ff84c2745
6
+ metadata.gz: e591cd40b4d7ddfbf9b9659936a7a7446a5691132e80aabb643bfc4bd5f53c384858ba148c8c6dbf2da2a1921cac9f5690290a200d7ab3d5335914d4e0e1e2d9
7
+ data.tar.gz: 7be865e2d455140b62a3f7ac17bc9fc09ec053cf7b043f3db473020e188e1cbfdd2b1efb07a83e99fa2862573a66a559eaa0b3025eafc7f974135146c57ada62
@@ -211,13 +211,12 @@ module EventMachine::Hiredis
211
211
 
212
212
  if @connected
213
213
  res = @connection.send_command(sym, args)
214
+ @defs.push(deferred)
214
215
  # @connected can be in a stale state. send_command will fail and return
215
216
  # 0 (if EM pure_ruby implmentation is not used). In that case, queue up
216
217
  # the command once to be retried on reconnection
217
- if res && res.kind_of?(Numeric) && res == 0
218
+ if @connection.error? && res && res.kind_of?(Numeric) && res == 0
218
219
  @command_queue << [deferred, sym, args]
219
- else
220
- @defs.push(deferred)
221
220
  end
222
221
  elsif @failed
223
222
  deferred.fail(Error.new("Redis connection in failed state"))
@@ -1,5 +1,5 @@
1
1
  module EventMachine
2
2
  module Hiredis
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gilmour-em-hiredis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martyn Loughran
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-24 00:00:00.000000000 Z
12
+ date: 2015-08-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine