libis-workflow 2.0.beta.20 → 2.0.beta.21

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: 2e5a0e42c41ae73d9a6b852917818dc9cebd97ef
4
- data.tar.gz: e4fb088019e7d60aad2b6b28323b2a5c777dbe64
3
+ metadata.gz: 45dc413751f60ed3f8eacdcb56ca833b9a250d3b
4
+ data.tar.gz: 4a676dbc0745c16f79789c984f09f3456c0b067e
5
5
  SHA512:
6
- metadata.gz: bfa5b177b528c9c5e8a33e9087b2698c9f1b7a3a54c986ebb4fe00150eb700fe694055239678cd5d50d8a696e555a215ad8028a30db0bc708495684e1b48a3ac
7
- data.tar.gz: 68f3312f5d681a3730bff41ec4e995408b986ec58a62f62ebd53d3c11882585dfe83e497d16e2f9702aff2719c70358bc7ee54bc996143d8a97d13e7c4cdf14d
6
+ metadata.gz: 53c6bcb24fdc6afdd51b679010ea81bcaf41dcb25a7fd5427f45cda3a822c3b54df84d768c06fe7eabcd4a8350e792ef1a785fee477a94b2f40be132e9037b13
7
+ data.tar.gz: 8b3cdde36594ed0c62ca38cbbb736b1bdff0d3d27a6f090c9043294b99aa82d42677a08cf6d751c234e33b0eb0567da3be545a08e72b4e9c2f0d7798abf50147
@@ -134,6 +134,13 @@ module Libis
134
134
 
135
135
  alias_method :<<, :add_item
136
136
 
137
+ # Get list of items.
138
+ #
139
+ # This method should return a list of items that is safe to iterate over while it is being altered.
140
+ def get_items
141
+ self.items.dup
142
+ end
143
+
137
144
  # Return item's parent
138
145
  # @return [Libis::Workflow::Base::WorkItem]
139
146
  def get_parent
@@ -269,7 +269,7 @@ module Libis
269
269
  end
270
270
 
271
271
  def subitems(item = nil)
272
- (item || self.workitem).items
272
+ (item || self.workitem).get_items
273
273
  end
274
274
 
275
275
  def default_values
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Libis
4
4
  module Workflow
5
- VERSION = '2.0.beta.20' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
5
+ VERSION = '2.0.beta.21' 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.20
4
+ version: 2.0.beta.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser