fanforce-workers 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/fanforce/workers/iron.rb +3 -3
- data/lib/fanforce/workers/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzFkNGZhY2Y0NjZkMmQxYTRhZjY3ZjlhN2RhMzM0ZmU4ZTA0OGU0MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmFiMWY3N2I3NjhlYzIwMDliODcxOTM3ZTc1OTM5OGZiYWJhNmNjNw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmMzZGNjZjlmYTI0NDA3MGY0YTk4ZGFjZDA2YzI1YmE5OGQxZGRlMzg0YmI3
|
10
|
+
MjgyMTlkN2FiZjY4YWYxMGRiMjI3NDBjYTBhMmZkZTNkNTljMWIwYjIwNDdi
|
11
|
+
ODlhOTE2MDdmMjYyZjUzZmQwM2MxYjRmNWJmNGIyMWUxYzMwOTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2YxZGZiNjYxMzkwMDA5MmFhMTg2M2ZjN2Q0ZjljNzVhNDVmNzMyYzFlY2Fk
|
14
|
+
Y2U1YWNlMmMwMzAxMGUyYmVhNmQ5OTMzYWMxOWMzNGJkYTMyMTRmNzQ4NjJi
|
15
|
+
ZTA3NGYwYjU2OGJjODFjMTFhNWYwNTliNGVkOTQ0YWI0ODQ2NDU=
|
@@ -1,15 +1,15 @@
|
|
1
1
|
class Fanforce::Workers::Iron
|
2
2
|
|
3
3
|
def initialize(opts={})
|
4
|
-
@
|
4
|
+
@mq_client = IronMQ::Client.new(:token => opts[:token] || ENV['IRON_TOKEN'], :project_id => opts[:project_id] || ENV['IRON_PROJECT_ID'])
|
5
5
|
end
|
6
6
|
|
7
7
|
def enqueue(queue_id, payload)
|
8
|
-
@
|
8
|
+
@mq_client.queue(queue_id).post(payload.to_json)
|
9
9
|
end
|
10
10
|
|
11
11
|
def client
|
12
|
-
@
|
12
|
+
@mq_client
|
13
13
|
end
|
14
14
|
|
15
15
|
end
|