libis-workflow 2.0.21 → 2.0.22

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: 1369d1c69a4f8ee9f1d767c2047caf4c5fad0cee
4
- data.tar.gz: 1b85e8cc488fb1b361ad4d68ff412079f2dacd97
3
+ metadata.gz: 8e344d72a61dc66fdedcda280fd6e4e3c34375fb
4
+ data.tar.gz: f1e102557c7f0ea463bb2ccc7f12880ca7b28c41
5
5
  SHA512:
6
- metadata.gz: 9b0bb414ceabdc6a1e1eeaba572ca6b77b4a1772f51bdb174a8cd28bd21f91d8bf09e0d70c230b57e0e3bc47c8ca9d51ae6f7db80c7c6cee5ed4e7f613539adc
7
- data.tar.gz: 88bd9d8b6b8b5931c7ec35c9a57e0a93bbab802a07a66f299142ae46c08e517c4cefebac7514caf3b74c2421e2ff6419d366c0d0913294f18ca55fd3b81f08ed
6
+ metadata.gz: 810e08d9332f5b1e31172bcf0214a9f350c09fed2d58f69870a7e713bcd4a0598e9257aa45fa32de1602873601e5f36291da36748b785200df26f73ac4aa0944
7
+ data.tar.gz: 68c5b4900ab55749f5058eee41d980ae6438bd15a02bea0cc0ba0900306e041ebd21717424e15a789dac5a97720cb323cfc507cbd863660d1fa69b67ecf57625
@@ -55,7 +55,7 @@ module Libis
55
55
 
56
56
  (parameter(:retry_count)+1).times do
57
57
 
58
- run_item(item)
58
+ item = run_item(item)
59
59
 
60
60
  case item.status(self.namepath)
61
61
  when :DONE
@@ -167,6 +167,8 @@ module Libis
167
167
  end
168
168
 
169
169
  post_process item
170
+
171
+ item
170
172
  end
171
173
 
172
174
  def pre_process(_)
@@ -188,7 +190,7 @@ module Libis
188
190
  parent_item.status_progress(self.namepath, 0, items.count)
189
191
  items.each_with_index do |item, i|
190
192
  debug 'Processing subitem (%d/%d): %s', parent_item, i+1, items.size, item.to_s
191
- run_item item
193
+ item = run_item item
192
194
  parent_item.status_progress(self.namepath, i+1)
193
195
  item_status = item.status(self.namepath)
194
196
  status[item_status] += 1
@@ -41,7 +41,7 @@ module Libis
41
41
  item.status_progress(self.namepath, 0, tasks.count)
42
42
  tasks.each_with_index do |task, i|
43
43
  info 'Running subtask (%d/%d): %s', item, i+1, tasks.size, task.name
44
- task.run item
44
+ item = task.run item
45
45
  item.status_progress(self.namepath, i+1)
46
46
  item_status = item.status(task.namepath)
47
47
  status[item_status] += 1
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Workflow
3
- VERSION = '2.0.21' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
3
+ VERSION = '2.0.22' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.21
4
+ version: 2.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-01 00:00:00.000000000 Z
11
+ date: 2016-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler