bumbleworks 0.0.79 → 0.0.80
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bumbleworks/entity.rb +3 -1
- data/lib/bumbleworks/ruote.rb +2 -1
- data/lib/bumbleworks/version.rb +1 -1
- data/spec/integration/entity_spec.rb +7 -0
- data/spec/lib/bumbleworks/ruote_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e27f853f94df55278dbd7ab57a0b1e1262da1832
|
4
|
+
data.tar.gz: 0a7955815956096b8913b885394d4af19788e9b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea67332cfec383527cc707c6d555bb5b1d9ce8f0668f3edf56c0df3fbae3250d9aa7f13025fd32d0c29132028d247e9dc73e355dd365fad21c60420d5a1623b4
|
7
|
+
data.tar.gz: 61f87c4a8453dc3c9379cae0e9a8542cb02f3689e3d9ead1ed90bbcd40a9c353b05970b3deda913541098d4323b8450398ac1fa0d4e6bd6e90df71cafc7d9c94
|
data/lib/bumbleworks/entity.rb
CHANGED
data/lib/bumbleworks/ruote.rb
CHANGED
@@ -43,7 +43,8 @@ module Bumbleworks
|
|
43
43
|
|
44
44
|
def launch(name, *args)
|
45
45
|
set_catchall_if_needed
|
46
|
-
|
46
|
+
definition = Bumbleworks::ProcessDefinition.find_by_name(name)
|
47
|
+
dashboard.launch(definition.tree, *args)
|
47
48
|
end
|
48
49
|
|
49
50
|
def cancel_process!(wfid, options = {})
|
data/lib/bumbleworks/version.rb
CHANGED
@@ -16,6 +16,13 @@ describe 'Entity Module' do
|
|
16
16
|
SecondNewClass = Class.new { include Bumbleworks::Entity }
|
17
17
|
expect(Bumbleworks.entity_classes).to eq([:geese, FirstNewClass, SecondNewClass])
|
18
18
|
end
|
19
|
+
|
20
|
+
it 'does not duplicate registered entities' do
|
21
|
+
Bumbleworks.entity_classes = [:geese]
|
22
|
+
class NewClass; include Bumbleworks::Entity; end
|
23
|
+
class NewClass; include Bumbleworks::Entity; end
|
24
|
+
expect(Bumbleworks.entity_classes).to eq([:geese, NewClass])
|
25
|
+
end
|
19
26
|
end
|
20
27
|
|
21
28
|
describe 'process control' do
|
@@ -391,6 +391,12 @@ describe Bumbleworks::Ruote do
|
|
391
391
|
expect(described_class.dashboard.participant_list.size).to eq(1)
|
392
392
|
expect(described_class.dashboard.participant_list.first.classname).to eq('Bumbleworks::StorageParticipant')
|
393
393
|
end
|
394
|
+
|
395
|
+
it 'raises ProcessDefinition::NotFound if given process name does not exist' do
|
396
|
+
expect {
|
397
|
+
described_class.launch('gevalstumerfkabambph')
|
398
|
+
}.to raise_error(Bumbleworks::ProcessDefinition::NotFound)
|
399
|
+
end
|
394
400
|
end
|
395
401
|
|
396
402
|
describe '.reset!' do
|