bushpig 0.1.8.1 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/gemset.nix +1 -1
- data/lib/bushpig/job.rb +8 -0
- data/lib/bushpig/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75f414bd5b386fdcd5d452374ab9d6f1076e59353e6a08416cd710f8119f0b9b
|
4
|
+
data.tar.gz: 91cca09ccea7aa3b9169d15fe8174d16312892c8db7668408f0c594afcdcaef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af10ea043bc302564ac0430b3531624c3d65b9c15cfc0e81e48f3cce9df314219b63c3bc1354de308420a6dd61d151858a9dcea1b9d999cdd23c201e9c12bcf3
|
7
|
+
data.tar.gz: e45960eddf67527a28203e73c7805b14cdfd7fc0399fac5b18d99833ee1d9d054794d437fb30c69c1c6b405a910127d2118d1d8bc9a92839c9a28404ad9e4e2e
|
data/Gemfile.lock
CHANGED
data/gemset.nix
CHANGED
data/lib/bushpig/job.rb
CHANGED
@@ -29,6 +29,10 @@ module Bushpig
|
|
29
29
|
def job_payload
|
30
30
|
JSON.generate({ class: self.class.name, id: job_id, args: each.to_a })
|
31
31
|
end
|
32
|
+
|
33
|
+
def call(job)
|
34
|
+
self.class.job_handler.call(job)
|
35
|
+
end
|
32
36
|
end
|
33
37
|
end
|
34
38
|
|
@@ -58,6 +62,10 @@ module Bushpig
|
|
58
62
|
def job_payload
|
59
63
|
JSON.generate({ class: self.class.name, id: job_id, args: each.to_a })
|
60
64
|
end
|
65
|
+
|
66
|
+
def call(job)
|
67
|
+
self.class.job_handler.call(job)
|
68
|
+
end
|
61
69
|
end
|
62
70
|
end
|
63
71
|
|
data/lib/bushpig/version.rb
CHANGED