libis-workflow-mongoid 2.0.26 → 2.0.27
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5074001298f36d59ebb9a875e91a70c73c7d4ab197087305fa25eb45635822c
|
4
|
+
data.tar.gz: feb8263c3671ea71de20f9795e8cc3eb9cc02a7d9c3d7764f8439b5a0bb3e9f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f4e7e8f3c6584d19a8608afa05d59e4605c2463a7b9b29a6007bbe41dab1030936335e4e22f7d81bcc69d7d1bc2b327de63fce610b6ac9f4b4941f787c2dc92
|
7
|
+
data.tar.gz: 35765f95280799fc072b48acca659e9fd1e5e9ec6629a392feb0356edce81b9d4fabd63d672dc87f087692e1c20d5b5dd68c661194176df5c12c82c3960c5287
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Libis
|
2
2
|
module Workflow
|
3
3
|
module Mongoid
|
4
|
-
VERSION = '2.0.
|
4
|
+
VERSION = '2.0.27' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
|
5
5
|
end
|
6
6
|
end
|
7
7
|
end
|
@@ -21,7 +21,7 @@ module Libis
|
|
21
21
|
has_many :items, as: :parent, class_name: Libis::Workflow::Mongoid::WorkItem.to_s,
|
22
22
|
dependent: :destroy, autosave: true, order: :c_at.asc
|
23
23
|
|
24
|
-
belongs_to :parent, polymorphic: true
|
24
|
+
belongs_to :parent, polymorphic: true, optional: true
|
25
25
|
|
26
26
|
# noinspection RubyArgCount
|
27
27
|
index({parent_id: 1, parent_type: 1, c_at: 1}, {name: 'by_parent'})
|
@@ -22,7 +22,7 @@ module Libis
|
|
22
22
|
index({name: 1}, {unique: 1, name: 'by_name'})
|
23
23
|
|
24
24
|
# noinspection RailsParamDefResolve
|
25
|
-
has_many :jobs, as: :workflow, dependent: :
|
25
|
+
has_many :jobs, as: :workflow, dependent: :restrict_with_exception, autosave: true, order: :name.asc
|
26
26
|
|
27
27
|
def self.from_hash(hash)
|
28
28
|
self.create_from_hash(hash, [:name]) do |item, cfg|
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.require_paths = ['lib']
|
30
30
|
|
31
31
|
spec.add_runtime_dependency 'libis-workflow', '~> 2.0'
|
32
|
-
spec.add_runtime_dependency 'mongoid', '~>
|
32
|
+
spec.add_runtime_dependency 'mongoid', '~> 7.0'
|
33
33
|
|
34
34
|
spec.add_development_dependency 'bundler', '~> 1.6'
|
35
35
|
spec.add_development_dependency 'rake'
|
data/spec/db_start.sh
CHANGED
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.
|
4
|
+
version: 2.0.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kris Dekeyser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: libis-workflow
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '7.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '7.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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.7.
|
161
|
+
rubygems_version: 2.7.8
|
162
162
|
signing_key:
|
163
163
|
specification_version: 4
|
164
164
|
summary: Mongoid persistence for the LIBIS Workflow framework.
|