postjob 0.2.0 → 0.2.1

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: 4ed72ae4bcdde5af904ffc01b85174f0e023b268
4
- data.tar.gz: 44771c462d15ee7c5772487a0237775f21fdf7ad
3
+ metadata.gz: bb21c1c9b0516371bbc43a2bd7229984ef7577a1
4
+ data.tar.gz: 761098539e9811bfc9976d5364082030123e646e
5
5
  SHA512:
6
- metadata.gz: 37cc0ceb8b0009d7b3fc59fcd5b451a1afe217baa932c981e4a315a6ded44197eefe92c3a553aef82780b4bd6e618eb0cd6f90c7d31fbfb71badb46182afd041
7
- data.tar.gz: 6f21eadc465a77ff6d09ad74e052efb9991baa0d6299327456416a0036fe3b1410b74659239775d5057b8b5a02bf875ca4efde18065ebdcc012fd507fe7f2208
6
+ metadata.gz: c23429e34021916aaa70ae98643b6f270c9580b63d68153bb765532bb768125a455ac6ff00a4dd2a6bf78a89c24603440be5334bc59e4e7f75137ee06e41aa73
7
+ data.tar.gz: f655e34b2746d8202613712ac70db55a094d0d8b9d996a4512ce86c3c8414cb43e8ce9eddd7983dc63966b1a4ccc77b50b70a3993e2ad31a1637b59dc04ec9a7
@@ -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
@@ -7,7 +7,7 @@ require "awesome_print"
7
7
 
8
8
  unless ENV["SKIP_SIMPLE_COV"]
9
9
  SimpleCov.start do
10
- minimum_coverage 90
10
+ minimum_coverage 88
11
11
  add_filter "/spec/"
12
12
  end
13
13
  end
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.0
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-03-29 00:00:00.000000000 Z
11
+ date: 2018-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec