libis-workflow-mongoid 2.0.17 → 2.0.18

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: 36e37f56b5fe461493670fed2f6f1fe9824cb789
4
- data.tar.gz: f4a05cf3858093988bc123dbd60ee43793af53d9
3
+ metadata.gz: 032144e349fab139b8d8b790a2efe60182d2c6ac
4
+ data.tar.gz: d2d9b8a18f3c870bb0bb57d1019747c31daf36c4
5
5
  SHA512:
6
- metadata.gz: c05c2a5633b832ff85164da27122a06b9e3cec6805873ba3e597207fa0e7b312b86139f96cdba89031c34cb8752c2513ecdf5804e83a490c76fa37411fec0767
7
- data.tar.gz: 4e8abf24693b4623f0a459925fe8491cc2681b338e69a857e369e5921a5a85cb21064b9b1c0365b24ad7a3b63052fde9e277ea1393914d9c15ba5e8cc122d675
6
+ metadata.gz: 67fb90f5e6fbf5eab1575db46ecb49cb37d8d90569411ba5adc203cca36866e4b78e22df87c94e34f44f92885046275149fcb6c5cb4a93a88e1ae6fca29b7d89
7
+ data.tar.gz: 1b69d6fe573724a7849644cd623204e39beea57bec8d3bb83483b11944217ca68efde4aebf53e9971039c3bdd151b2518cfdb87657ba4f028c264e6b66433308
@@ -1,7 +1,7 @@
1
1
  module Libis
2
2
  module Workflow
3
3
  module Mongoid
4
- VERSION = '2.0.17' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
4
+ VERSION = '2.0.18' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
5
5
  end
6
6
  end
7
7
  end
@@ -27,7 +27,8 @@ module Libis
27
27
 
28
28
  def add_item(item)
29
29
  if item.parent
30
- item.parent = nil
30
+ item.parent.delete(item)
31
+ item.parent.save!
31
32
  end
32
33
  super
33
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-workflow-mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.17
4
+ version: 2.0.18
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-05-11 00:00:00.000000000 Z
11
+ date: 2016-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: libis-workflow
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  version: '0'
159
159
  requirements: []
160
160
  rubyforge_project:
161
- rubygems_version: 2.4.8
161
+ rubygems_version: 2.6.4
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Mongoid persistence for the LIBIS Workflow framework.