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 +4 -4
- data/lib/em-hiredis/base_client.rb +2 -3
- data/lib/em-hiredis/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: 2374a4e27d81a3769c7e6600d174b6a9cdedf1a6
|
4
|
+
data.tar.gz: b9989e1ae12bc6cb0d228f94857c75842a5ecd50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"))
|
data/lib/em-hiredis/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2015-08-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|