fanforce-worker 0.17.1 → 0.17.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fanforce/worker/errors.rb +4 -2
- data/lib/fanforce/worker/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: 66341ba45b8ae61e0b063c81f6b24d5eea57815a
|
4
|
+
data.tar.gz: b7cf55420ab52c21b4de5d3683e06a6a49e3d6c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6f32aaf24c3be0ef07bc54afe2080f1422fb2067c84234c1e56a06ede25383862e21dc845007600688b027b23c0200f6ba313f454b7874906b8ff6d1afefe2f
|
7
|
+
data.tar.gz: f29d00541152d99f0d8ea81c541e9b8fd2e00ef36df2bec1c4cb425dbf3ca88337cee0dc69132e99ff359967bf7a68a81fafde8eb8cc3a27d0fe5baec0eca863
|
@@ -14,13 +14,15 @@ class Fanforce::Worker::Errors
|
|
14
14
|
Fanforce::Worker::Error.new(queue_id, error_id)
|
15
15
|
end
|
16
16
|
|
17
|
-
def self.list(queue_id, from_num=0, to_num=100)
|
17
|
+
def self.list(queue_id, from_num=0, to_num=100, reverse=false)
|
18
18
|
error_ids = redis.lrange("ERRORS:#{queue_id}", from_num, to_num)
|
19
|
+
error_ids.reverse! if reverse
|
19
20
|
Fanforce::Worker::ErrorList.new(queue_id, error_ids)
|
20
21
|
end
|
21
22
|
|
22
|
-
def self.list_summaries(queue_id, from_num=0, to_num=100)
|
23
|
+
def self.list_summaries(queue_id, from_num=0, to_num=100, reverse=false)
|
23
24
|
error_ids = redis.lrange("ERRORS:#{queue_id}", from_num, to_num)
|
25
|
+
error_ids.reverse! if reverse
|
24
26
|
Fanforce::Worker::ErrorList.new(queue_id, error_ids).summaries
|
25
27
|
end
|
26
28
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fanforce-worker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Caleb Clark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iron_mq
|