libis-workflow-mongoid 2.0.30 → 2.1.0

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: 0f008b2769119c29bd99fed00eb5b0c9bd832918310c35a999608342990f55ec
4
- data.tar.gz: 578f056c2d38f7ca6e6b19b4a23a5875435f22a2a7a27aea42ccacc85e7e7e78
3
+ metadata.gz: 84c98094e074f81335230217d2f7e2be04db46d4923184b677aa7609aa2774c4
4
+ data.tar.gz: 7507f107aed1b5737c0d71e253f079536d4243715f2fec2f0746fdba8b81505e
5
5
  SHA512:
6
- metadata.gz: d4e67aa30895f5fa53b251c2434a0f5e8c21440218fb11ace03300d65351163be3936b5a21a560dce4797d257ed04179e4f08c3016dc1c2b9caf279991341fc1
7
- data.tar.gz: db2f1d83a268b9366e13f23f0af08e8d5352457ed6afd2a6a2b643807febba9d1d9efd413072edae8abd5e8611df09ad50495ff73b57702944558d3926be1a80
6
+ metadata.gz: 42de09d6300ee24099f3eb1c7e16e50d329db278fb272f490c4468469162ba01406463ea630fe2d223ae91663ad8b9f80463b66c7e015fd7b1d8567a8148e29b
7
+ data.tar.gz: 2c285fa0f871f5d328a2b13bc28ab05e0dfac38eda524df5abf8d86fc751ce6c33f987328b5a2bf22c5cb06a05e1bf0e09c037212e12d3155d83bfe4f2d5a917
@@ -23,6 +23,9 @@ module Libis
23
23
 
24
24
  index({job_id: 1, job_type: 1, start_date: 1}, {sparse: 1, name: 'by_job'})
25
25
 
26
+ has_many :items, as: :parent, class_name: Libis::Workflow::Mongoid::WorkItem.to_s,
27
+ dependent: :destroy, autosave: true, order: :c_at.asc
28
+
26
29
  set_callback(:destroy, :before) do |document|
27
30
  document.rm_workdir
28
31
  document.rm_log
@@ -1,7 +1,7 @@
1
1
  module Libis
2
2
  module Workflow
3
3
  module Mongoid
4
- VERSION = '2.0.30' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
4
+ VERSION = '2.1.0' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
5
5
  end
6
6
  end
7
7
  end
@@ -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', '7.3.3'
32
+ spec.add_runtime_dependency 'mongoid', '~> 8.1'
33
33
 
34
34
  spec.add_development_dependency 'bundler'
35
35
  spec.add_development_dependency 'rake'
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.30
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-23 00:00:00.000000000 Z
11
+ date: 2023-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: libis-workflow
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: mongoid
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 7.3.3
33
+ version: '8.1'
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: 7.3.3
40
+ version: '8.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
158
  requirements: []
159
- rubygems_version: 3.2.15
159
+ rubygems_version: 3.1.6
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Mongoid persistence for the LIBIS Workflow framework.