postjob 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/postjob/runner.rb +3 -0
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb21c1c9b0516371bbc43a2bd7229984ef7577a1
|
|
4
|
+
data.tar.gz: 761098539e9811bfc9976d5364082030123e646e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c23429e34021916aaa70ae98643b6f270c9580b63d68153bb765532bb768125a455ac6ff00a4dd2a6bf78a89c24603440be5334bc59e4e7f75137ee06e41aa73
|
|
7
|
+
data.tar.gz: f655e34b2746d8202613712ac70db55a094d0d8b9d996a4512ce86c3c8414cb43e8ce9eddd7983dc63966b1a4ccc77b50b70a3993e2ad31a1637b59dc04ec9a7
|
data/lib/postjob/runner.rb
CHANGED
|
@@ -41,6 +41,9 @@ module Postjob::Runner
|
|
|
41
41
|
when :manual then workflow = "__manual__"
|
|
42
42
|
when Symbol then workflow = "#{current_job.workflow}.#{workflow}"
|
|
43
43
|
when Module then workflow = workflow.name
|
|
44
|
+
when String then :nop
|
|
45
|
+
else
|
|
46
|
+
raise ArgumentError, "Unsupported workflow spec #{workflow.inspect}. Did you run await(fun(a, b)) instead of await(:fun, a, b)"
|
|
44
47
|
end
|
|
45
48
|
|
|
46
49
|
::Postjob::Queue.find_or_create_childjob(self.current_job, workflow, args,
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: postjob
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- radiospiel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-04-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|