libis-workflow-mongoid 2.0.27 → 2.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5221d80128ccd545a8309305697e3f8d8d45d32e97d1058f1c7de38e13d3acfe
|
|
4
|
+
data.tar.gz: 2297f8138cccb88096c7e73933617b8d607d46e2984f2d92c3be1a2b72f4070c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 58bc88aa1a4d9c3bcba575220abc78e475f3679288323b9b33626e02707dddec55991f612db5ae7f4d3cd17655b6a23dc05ed14279538abb6742f3b5f1598d91
|
|
7
|
+
data.tar.gz: 15c749b170429e8e211e59c8f57c4060c6c12be73a9a26a0cfdfce5513338767d0755c8ec2113867ac25ecb4371d2755c6d0794cd724cfb1a5d0686d1eb65487
|
|
@@ -12,7 +12,6 @@ module Libis
|
|
|
12
12
|
autoload :Job, 'libis/workflow/mongoid/job'
|
|
13
13
|
autoload :WorkItem, 'libis/workflow/mongoid/work_item'
|
|
14
14
|
autoload :Run, 'libis/workflow/mongoid/run'
|
|
15
|
-
autoload :Worker, 'libis/workflow/mongoid/worker'
|
|
16
15
|
autoload :Workflow, 'libis/workflow/mongoid/workflow'
|
|
17
16
|
|
|
18
17
|
def self.configure
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Libis
|
|
2
2
|
module Workflow
|
|
3
3
|
module Mongoid
|
|
4
|
-
VERSION = '2.0.
|
|
4
|
+
VERSION = '2.0.29' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
|
|
5
5
|
end
|
|
6
6
|
end
|
|
7
7
|
end
|
data/spec/tasks/camelize_name.rb
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.29
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kris Dekeyser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-05-
|
|
11
|
+
date: 2020-05-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: libis-workflow
|
|
@@ -120,7 +120,6 @@ files:
|
|
|
120
120
|
- lib/libis/workflow/mongoid/status_entry.rb
|
|
121
121
|
- lib/libis/workflow/mongoid/version.rb
|
|
122
122
|
- lib/libis/workflow/mongoid/work_item.rb
|
|
123
|
-
- lib/libis/workflow/mongoid/worker.rb
|
|
124
123
|
- lib/libis/workflow/mongoid/workflow.rb
|
|
125
124
|
- libis-workflow-mongoid.gemspec
|
|
126
125
|
- mongoid.yml
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
require 'libis/workflow/worker'
|
|
2
|
-
require 'sidekiq'
|
|
3
|
-
|
|
4
|
-
module Libis
|
|
5
|
-
module Workflow
|
|
6
|
-
module Mongoid
|
|
7
|
-
|
|
8
|
-
class Worker < Libis::Workflow::Worker
|
|
9
|
-
|
|
10
|
-
def get_job(job_config)
|
|
11
|
-
job_name = job_config.delete(:name)
|
|
12
|
-
job = ::Libis::Workflow::Mongoid::Job.find(name: job_name).first
|
|
13
|
-
raise RuntimeError.new "Workflow #{job_name} not found" unless job.is_a? ::Libis::Workflow::Mongoid::Job
|
|
14
|
-
job
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|