libis-workflow 2.0.beta.16 → 2.0.beta.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/libis/workflow/task.rb +5 -6
- data/lib/libis/workflow/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a17d33bfc58aea0a799803b47af24f7184d40492
|
4
|
+
data.tar.gz: 4a01d72fa1279cc30af09e3b21eff5fd76b301c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fd51490e45feb47b8bca5a42154f8c963fb625400a7abfba385a5a4f30e7f49d74a763af4f068359215a6fda4a3076a8b507d77443ff37219843a4749a8dc2d
|
7
|
+
data.tar.gz: 4c6a3e88a2d7546093c23e085528377df3b84b4668f9291aa5d861a3eb40ac9f4ec4a3ad2b76a64eb35bdc6d54b43af4e1816cbb408886fcd7069d1c6e4e69bc
|
data/lib/libis/workflow/task.rb
CHANGED
@@ -158,17 +158,16 @@ module Libis
|
|
158
158
|
|
159
159
|
def run_subitems(parent_item)
|
160
160
|
return unless check_processing_subitems
|
161
|
-
|
162
|
-
return unless items.count > 0
|
161
|
+
return unless parent_item.count > 0
|
163
162
|
|
164
163
|
status = Hash.new(0)
|
165
|
-
|
166
|
-
debug 'Processing subitem (%d/%d): %s', parent_item, i+1, parent_item.
|
164
|
+
self.subitems(parent_item).each_with_index do |item, i|
|
165
|
+
debug 'Processing subitem (%d/%d): %s', parent_item, i+1, parent_item.count, item.to_s
|
167
166
|
run_item item
|
168
167
|
status[item.status(self.namepath)] += 1
|
169
168
|
end
|
170
169
|
|
171
|
-
debug '%d of %d subitems passed', parent_item, status[:DONE], parent_item.
|
170
|
+
debug '%d of %d subitems passed', parent_item, status[:DONE], parent_item.count
|
172
171
|
substatus_check(status, parent_item, 'item')
|
173
172
|
end
|
174
173
|
|
@@ -268,7 +267,7 @@ module Libis
|
|
268
267
|
end
|
269
268
|
|
270
269
|
def subitems(item = nil)
|
271
|
-
(item || workitem).get_items
|
270
|
+
(item || self.workitem).get_items
|
272
271
|
end
|
273
272
|
|
274
273
|
def default_values
|
@@ -2,6 +2,6 @@
|
|
2
2
|
|
3
3
|
module Libis
|
4
4
|
module Workflow
|
5
|
-
VERSION = '2.0.beta.
|
5
|
+
VERSION = '2.0.beta.17' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
|
6
6
|
end
|
7
7
|
end
|