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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 131f6186b4e133fede7b3f6b421bbe98232e973d
4
- data.tar.gz: d144f4b3a112e8ffaef4693a3f8e4aa97246ddca
3
+ metadata.gz: 66341ba45b8ae61e0b063c81f6b24d5eea57815a
4
+ data.tar.gz: b7cf55420ab52c21b4de5d3683e06a6a49e3d6c0
5
5
  SHA512:
6
- metadata.gz: c2a0b55d833602979de5dbda55ea5d74f39ee2d616a0067da214196372e54c3fad433165fc8bacc3a3989090f69071b4bb7c6a7933d08363cf194b11fc8d34dd
7
- data.tar.gz: 276eb6f953c18f67dc1f6d3f22cd39a41f9f0a0273cc1faff4937a8e63476a39b5f883005ed8aebd0a3d8bf5b3d7d2849128eb89f546aa7e56d9cd94a4b14c4e
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
 
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class Worker
3
- VERSION = '0.17.1'
3
+ VERSION = '0.17.2'
4
4
  end
5
5
  end
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.1
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-13 00:00:00.000000000 Z
11
+ date: 2014-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iron_mq