metacrunch-redis 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metacrunch/redis/queue_source.rb +2 -2
- data/lib/metacrunch/redis/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: e2966f98bbe7578886cd8062a85adbdcdfac6506
|
4
|
+
data.tar.gz: 93b03ff34459f6dda1fa41e4a13e5080ba832c62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bff4e20ae228229b11e4dac0da275e47d8a850a88659da98b6f4225ce08de5391a08d8e383bf8b4c67182d90eb90e94c771f4359a75d862f7d4230fe7958540d
|
7
|
+
data.tar.gz: 663a3cf3d7749621fe0ea09634f1ddb0c3604aeca9fae4accd9354d066ad0d3d29b1d6dc633af4d1d02f3310d3570ce08b76ccce0b8794aee6f0af6ed2b464a7
|
@@ -24,14 +24,14 @@ module Metacrunch
|
|
24
24
|
while true
|
25
25
|
list, result = @redis.blpop(@queue_name, timeout: @blocking_timeout)
|
26
26
|
if result.present?
|
27
|
-
yield
|
27
|
+
yield result
|
28
28
|
else
|
29
29
|
yield nil
|
30
30
|
end
|
31
31
|
end
|
32
32
|
else
|
33
33
|
while result = @redis.lpop(@queue_name)
|
34
|
-
yield
|
34
|
+
yield result
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metacrunch-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- René Sprotte
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|