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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2e026d8345a63a009cc6fe11553fc8bfc87fbd0
4
- data.tar.gz: 101d9b968ddb2445505ffbd4aff4b3503c608721
3
+ metadata.gz: 85b657bbeda0926ec4dac16bc70939070a85cc2f
4
+ data.tar.gz: e40e23a68264fde408e87613314f2df097b2fda8
5
5
  SHA512:
6
- metadata.gz: 650931de9ff9aed416f1388fbb8b31bb67b87b6c5d3890d8116548eda0aba018b5de847a075385df682c2eb6235a29091d5e8f38b1dc6f8a25c9df7b95024a67
7
- data.tar.gz: 110a3703be03e56a8300c1c79aea3e39b753c97e97249a12dad8fbcba3fa79a60fa7793ca7ea91afa75dab8eccb63e7c20417cdf696114dc32e5dc915dcb9c07
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].actors.first
20
+ if registered_workflow = Actor[name]
21
+ registered_workflow.actors.first
22
+ end
21
23
  end
22
24
 
23
25
  # Load a workflow
@@ -1,3 +1,3 @@
1
1
  module Cellect
2
- VERSION = '3.0.0'
2
+ VERSION = '3.0.1'
3
3
  end
@@ -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.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-09 00:00:00.000000000 Z
11
+ date: 2017-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler