cellect-server 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cellect/server/workflow.rb +3 -1
- data/lib/cellect/version.rb +1 -1
- data/spec/cellect/server/workflow_spec.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85b657bbeda0926ec4dac16bc70939070a85cc2f
|
4
|
+
data.tar.gz: e40e23a68264fde408e87613314f2df097b2fda8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03a032d11d1c17279131a98b70c5936ea0b8217ed6736ba8719e6c506431369a7e2b0bc591301093515228c3188275868eff835b2f77a561b79eb4001f6ec521
|
7
|
+
data.tar.gz: 3ac3642f79b1433e56f8e256c5e406f043f404454aa6100f5a75ce476324ba07fc3482316007d5722feef1c8fff8d0d71e367a981823d609518d3964232df5b1
|
@@ -17,7 +17,9 @@ module Cellect
|
|
17
17
|
# Look up and/or load a workflow
|
18
18
|
def self.[](name)
|
19
19
|
Cellect::Server.adapter.load_workflows(name) unless Actor[name]
|
20
|
-
Actor[name]
|
20
|
+
if registered_workflow = Actor[name]
|
21
|
+
registered_workflow.actors.first
|
22
|
+
end
|
21
23
|
end
|
22
24
|
|
23
25
|
# Load a workflow
|
data/lib/cellect/version.rb
CHANGED
@@ -7,6 +7,11 @@ module Cellect::Server
|
|
7
7
|
Workflow['random']
|
8
8
|
end
|
9
9
|
|
10
|
+
it "should not raise error if no workflow exists to register" do
|
11
|
+
expect(Cellect::Server.adapter).to receive(:workflow_list).and_return([])
|
12
|
+
expect { Workflow['missing'] }.not_to raise_error
|
13
|
+
end
|
14
|
+
|
10
15
|
SET_TYPES.each do |workflow_type|
|
11
16
|
context workflow_type do
|
12
17
|
let(:workflow) { Workflow.new(workflow_type) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cellect-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Parrish
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|