fanforce-workers 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjRiMWMzYmY3NDk3NDQzY2I1OGY4YjEwYWViZGE3ZDU0MjUzODVhYQ==
4
+ Y2IzOTBlZmUyY2FiNTA0MzBkYWNlOGUzODhlOWU4M2YzNTI5NDQxYw==
5
5
  data.tar.gz: !binary |-
6
- NzZjZmQzMGNhZDZhN2E3ZmQwYTM2YTdmYmRkZjNmODE0NWFmZWUxYg==
6
+ NTRjOTdkYWMyZmYyN2JjODE0YjA4NDU1MWY5M2QxNGNiOTcwNDQ0OA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NjQ2ZDRkMzcwZTQ0YTUxOTc0NmM3NWE2MzhhYTVkYmZhNWE3ZGM4ZTRiZmZh
10
- NTFiYzY2OGJhZWE5NjMyOGFkMTI0ZjBhZDM5YmY3OWViYTI1YTMyMjYyMjIx
11
- ZTIyODI0MTBiNWI5Mzk2Y2Q5YTVmYmQ4ZmY3ODNjNTFlNGZlMTI=
9
+ MjJjZDY2ZTE2ZjlmNWIwZmRiZDNhMzJiNzE4NjZkYjI2OGNjMDhiMTY0YmM1
10
+ Yzg4NTYwYTNlYTA0MTc0MjIxODVmYWJkZTU5NTUyMjc2NTVlNGJmZDAxNzNk
11
+ MTk2MjMyMzZhZTdmODFhMjUyYmRhZjY1ZmQ4YmNhMzEzOTkxOTY=
12
12
  data.tar.gz: !binary |-
13
- ZWYyMGNlZjQ3MWMzNzBiNzg3YmMwZjJlNmJiOWJmZDU1M2I3YTAxZTYzNDRj
14
- MzEwYTdiNzNhNzIzOGIzOWM1ZTE5YWJiZGMwM2Q0YjBjMTY2ZTAzNDgzOGQ5
15
- YzcwZTdkYmI5M2JmMDUzNjY0NDc4NzhmMTc0ODdhZDEyYmIzMzA=
13
+ YWI3M2U2ZDFlYzEwNjNlNzI5YjA3NzIzYzVjMDViNjdmNWI3OWMxMzk0NDJi
14
+ OWZmY2Q0YWRlN2QzMDY3MTQ2NDc0YzQwYzg1ZmRhN2FjMzViMDY0MzEwNWYw
15
+ ZTYyZWE2NDA4NzFkMzQ2M2I0NDE0ZWU3NGUyNzc1ZTA2Y2NmMTU=
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class Workers
3
- VERSION = '0.5.3'
3
+ VERSION = '0.5.4'
4
4
  end
5
5
  end
@@ -24,11 +24,19 @@ class Fanforce::Workers
24
24
  ##########################################################################################
25
25
 
26
26
  def self.add_error(queue_id, payload)
27
- self.new.iron.enqueue("#{queue_id}-ERRORS", payload)
27
+ self.new.iron.enqueue("#{prefix}#{queue_id}-ERRORS", payload)
28
28
  end
29
29
 
30
30
  def self.enqueue(queue_id, payload)
31
- self.new.enqueue(queue_id, payload)
31
+ self.new.enqueue("#{prefix}#{queue_id}", payload)
32
+ end
33
+
34
+ def self.prefix=(prefix)
35
+ @prefix = prefix
36
+ end
37
+
38
+ def self.prefix
39
+ @prefix ||= ''
32
40
  end
33
41
 
34
42
  ##########################################################################################
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark