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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c458faa1225d1b5e0fe7590bdd00371169de92b638dfbc74e88958b2430c5c7e
4
- data.tar.gz: 8657eea5fd2a3929d049be9a7da1a252413cab1de42b991178673328202f4ee1
3
+ metadata.gz: 6a350dbda056af9bf8965e6a68ece409285d0ba18c03c264509e7249e1635883
4
+ data.tar.gz: 4361b820ca0efb3f30fbd726692ffbe815746d5adcf1582710e4abcee3246ca6
5
5
  SHA512:
6
- metadata.gz: 4ae6d08046b2bc2e3388544fa61f308cf57c9dab5a4f67a923d1400ca7743fb48966a9aa0ce504a2d16d5c7e80fc98d8fd5308583236ff305ffb0d1b2eb17c70
7
- data.tar.gz: afee2f7723b316410d1144cf71c42cbace68ff304842cc1c29cd0a358c297ae47f9ae1166e3cd1daef8e677dbdd38b11fb64e771d2d1975afc399cafb8329129
6
+ metadata.gz: e97d5c3dc34f74249d9aed1a43ac80a9db776cc7f9eb7e19894bbbbce9ccf4c74395f988fb9cf14d918bf8107642b948e018dfc407528523cd056ff596a86bb7
7
+ data.tar.gz: ac977d26c7dd272ea9c7503846beeed90b909d52abd425b96c354ac0d21658dbe0849752d005e4b847749667bca6298557ae1edcd75a37278fb9db904875e23d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- acidic_job (1.0.0.pre17)
4
+ acidic_job (1.0.0.pre18)
5
5
  activerecord
6
6
  activesupport
7
7
  database_cleaner
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AcidicJob
4
- VERSION = "1.0.0.pre17"
4
+ VERSION = "1.0.0.pre18"
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.pre17
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-14 00:00:00.000000000 Z
11
+ date: 2022-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord