acidic_job 1.0.0.beta.5 → 1.0.0.beta.6

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
  SHA256:
3
- metadata.gz: 3c63f44eea243551258930cb521408f7691419297922f39f3722d9386764a877
4
- data.tar.gz: 2a292f1abba04cf031c524084eb48ce8a4a16084b79614843aba2593edeaae5f
3
+ metadata.gz: 15f22e01fee75c9785c6d7ac0ef1f38620cd599bd4f05b372bdda1fa0e6045e5
4
+ data.tar.gz: b9cdb3146ed4752b11b5c7aaccfd02f8cb14e37712212796bf14e2a4bdf03ca2
5
5
  SHA512:
6
- metadata.gz: dae8645e4495d7b770fb7fe4a4875d3335a4c47239532cb769701bc18cba1867a3462cf5280d89d0d880841721a7db4091c40e952917d2169fc31067dac6cc98
7
- data.tar.gz: 7a25ad55a271707f5444e66df9588594a62751e25310f300580169ae376236cbd9d0f4186bdd184d32b30cbc13953e100666614a7155307bbd4809867f87b534
6
+ metadata.gz: 72a327e00a6e066160d73ffda31321af66e6c20a8b2e446f30869f7e3245ec4db704812f9ceda6a8fb02be9454eaddf503476ebf6614d453df15b4ca8a656e65
7
+ data.tar.gz: 420b38dbb39ba3ed89be0c2b8b5c2305f27f6aea8208ee2dfc689ec729329f676ec43b3cb3ac98481c25985eae13eacc64348900f3389b12f74c56d723143d33
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- acidic_job (1.0.0.beta.5)
4
+ acidic_job (1.0.0.beta.6)
5
5
  activejob
6
6
  activerecord
7
7
  activesupport
@@ -15,4 +15,5 @@ module AcidicJob
15
15
  class UnserializableValue < Error; end
16
16
  class LockedIdempotencyKey < Error; end
17
17
  class MismatchedIdempotencyKeyAndJobArguments < Error; end
18
+ class MissingBlockArgument < Error; end
18
19
  end
@@ -81,12 +81,9 @@ module AcidicJob
81
81
  @workflow_builder = WorkflowBuilder.new
82
82
 
83
83
  raise MissingWorkflowBlock, "A block must be passed to `with_acidic_workflow`" unless block_given?
84
+ raise MissingBlockArgument, "An argument must be passed to the `with_acidic_workflow` block" if block.arity.zero?
84
85
 
85
- if block.arity.zero?
86
- @workflow_builder.instance_exec(&block)
87
- else
88
- yield @workflow_builder
89
- end
86
+ block.call @workflow_builder
90
87
 
91
88
  raise NoDefinedSteps if @workflow_builder.steps.empty?
92
89
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AcidicJob
4
- VERSION = "1.0.0.beta.5"
4
+ VERSION = "1.0.0.beta.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acidic_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta.5
4
+ version: 1.0.0.beta.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - fractaledmind
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-09 00:00:00.000000000 Z
11
+ date: 2022-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob