libis-workflow 2.0.beta.16 → 2.0.beta.17

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: 1c7f9825b84a021bec427c2590340176d1bd32b1
4
- data.tar.gz: 9ab8fa711d3061a7b837fc093cf64e4868193b46
3
+ metadata.gz: a17d33bfc58aea0a799803b47af24f7184d40492
4
+ data.tar.gz: 4a01d72fa1279cc30af09e3b21eff5fd76b301c8
5
5
  SHA512:
6
- metadata.gz: 53569d8e13c02c1a059f6753c2f5da514b93f8ca05280bbd8959a1bfad47ee43d42ab4e8b7d6755f2e29c06a5f19acb91adcb2707aac40095a8a7611a4ea5b7d
7
- data.tar.gz: c77740d9c2044d1809b0b7b3d38b5c529dcd37cc6a644d54f27762445eb1bdb4b461e3190a3dd88de6764b76961928745411d9aeb9497a19f09676fc56d7df6f
6
+ metadata.gz: 7fd51490e45feb47b8bca5a42154f8c963fb625400a7abfba385a5a4f30e7f49d74a763af4f068359215a6fda4a3076a8b507d77443ff37219843a4749a8dc2d
7
+ data.tar.gz: 4c6a3e88a2d7546093c23e085528377df3b84b4668f9291aa5d861a3eb40ac9f4ec4a3ad2b76a64eb35bdc6d54b43af4e1816cbb408886fcd7069d1c6e4e69bc
@@ -158,17 +158,16 @@ module Libis
158
158
 
159
159
  def run_subitems(parent_item)
160
160
  return unless check_processing_subitems
161
- items = subitems parent_item
162
- return unless items.count > 0
161
+ return unless parent_item.count > 0
163
162
 
164
163
  status = Hash.new(0)
165
- items.each_with_index do |item, i|
166
- debug 'Processing subitem (%d/%d): %s', parent_item, i+1, parent_item.item_count, item.to_s
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.item_count
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.16' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.beta.16
4
+ version: 2.0.beta.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser