acidic_job 1.0.0.pre17 → 1.0.0.pre18
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/lib/acidic_job/step.rb +3 -3
- data/lib/acidic_job/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a350dbda056af9bf8965e6a68ece409285d0ba18c03c264509e7249e1635883
|
4
|
+
data.tar.gz: 4361b820ca0efb3f30fbd726692ffbe815746d5adcf1582710e4abcee3246ca6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e97d5c3dc34f74249d9aed1a43ac80a9db776cc7f9eb7e19894bbbbce9ccf4c74395f988fb9cf14d918bf8107642b948e018dfc407528523cd056ff596a86bb7
|
7
|
+
data.tar.gz: ac977d26c7dd272ea9c7503846beeed90b909d52abd425b96c354ac0d21658dbe0849752d005e4b847749667bca6298557ae1edcd75a37278fb9db904875e23d
|
data/Gemfile.lock
CHANGED
data/lib/acidic_job/step.rb
CHANGED
@@ -54,9 +54,9 @@ module AcidicJob
|
|
54
54
|
next_step = step["then"]
|
55
55
|
# to support iteration within steps
|
56
56
|
iterable_key = step["for_each"]
|
57
|
-
iterated_key = "processed_#{iterable_key}"
|
58
|
-
iterables = @run.attr_accessors.fetch(iterable_key, [])
|
59
|
-
iterateds = @run.attr_accessors.fetch(iterated_key, [])
|
57
|
+
iterated_key = "processed_#{current_step}_#{iterable_key}"
|
58
|
+
iterables = @run.attr_accessors.fetch(iterable_key, []) || []
|
59
|
+
iterateds = @run.attr_accessors.fetch(iterated_key, []) || []
|
60
60
|
next_item = iterables.reject { |item| iterateds.include? item }.first
|
61
61
|
|
62
62
|
# jobs can have no-op steps, especially so that they can use only the async/await mechanism for that step
|
data/lib/acidic_job/version.rb
CHANGED
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.
|
4
|
+
version: 1.0.0.pre18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fractaledmind
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|