fanforce-worker 0.19.1 → 0.19.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: 685c3abe0d6f9a4feea0a1031e79967dc60b9d27
4
- data.tar.gz: 1a556cf62a6448ad3c506cf63936d18321b580e5
3
+ metadata.gz: ca8014d9da61073d61f76751badde9a5f0bcbdb2
4
+ data.tar.gz: fd9a521fe85d726545f641ee80a51138fe2736d3
5
5
  SHA512:
6
- metadata.gz: 4c7a3a646052b1f21638a473fc82e2e242bab4aeb9d6c29e4b5d9b8a24a011dabe7069fbb9ec918dd091d2067de79dd4487fffdb7f28f2fe8b90967ad455004f
7
- data.tar.gz: 5a7bf87fd79e6547524c9723276af95a9b8b9c7c66e77f8e008bf7aeaf4dd358ca6d4f48751ceb71d4083e3c008c244fa6ff8ece74ac8455e30e68e50d5b853d
6
+ metadata.gz: ef05a7bb906fbe66077c25485a83d099e7d20fa4a6c9e312e1d96fb7b6be193f4651e8eb392c3f2144a35f4693c8c32580232290e1a4e8589c305d686a2ef4d2
7
+ data.tar.gz: 789490534e5be084af2e125ad188d31b8ec578d19272a49ad74541c05a5931d23b263e14ab2b3b2164f5746d2bbb34963f0b5d7461ccfeb3425d579d4667ce2c
@@ -52,7 +52,7 @@ class Fanforce::Worker::Errors
52
52
  iron: {token: Fanforce::Worker.iron_token, project_id: Fanforce::Worker.iron_project_id}
53
53
  }
54
54
  redis.multi do
55
- redis.sadd("ERRORS:#{queue_id}", error_id)
55
+ redis.rpush("ERRORS:#{queue_id}", error_id)
56
56
  redis.hmset("ERRORS:#{queue_id}:#{error_id}", error.flatten)
57
57
  end
58
58
  rescue => e
@@ -103,7 +103,7 @@ class Fanforce::Worker::Error
103
103
  def self.redis; Fanforce::Worker::Errors.redis end
104
104
 
105
105
  def self.delete(queue_id, error_id)
106
- redis.srem("ERRORS:#{queue_id}", error_id)
106
+ redis.lrem("ERRORS:#{queue_id}", 0, error_id)
107
107
  redis.del("ERRORS:#{queue_id}:#{error_id}")
108
108
  end
109
109
 
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class Worker
3
- VERSION = '0.19.1'
3
+ VERSION = '0.19.2'
4
4
  end
5
5
  end
@@ -15,6 +15,7 @@ class Fanforce::Worker
15
15
  end
16
16
 
17
17
  def self.iron_mq
18
+
18
19
  require 'iron_mq'
19
20
  @@iron[:mq] ||= IronMQ::Client.new(:token => @@iron[:token], :project_id => @@iron[:project_id])
20
21
  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.19.1
4
+ version: 0.19.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-14 00:00:00.000000000 Z
11
+ date: 2014-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iron_mq