dynflow 0.8.12 → 0.8.13

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: 74ac597ce9af73467ae1ecbf398a2929f1595b14
4
- data.tar.gz: 22cb74c9aef05391f93d8652888c9806fd9edde5
3
+ metadata.gz: 9215ff1efd57ed6ece39b4ae15891123a6304050
4
+ data.tar.gz: 7c68d582ed355012b1de8211172d7b10240a6d45
5
5
  SHA512:
6
- metadata.gz: aec52cb41798f0730ef950e88195a3973b3d879f584b0e3341e8900147d66ff1b5642d394683894c4a0c33a1eb1d119296c08840dbbb8fb9a90d1b760d8fe0ef
7
- data.tar.gz: 5e5908f5ad7938c036c948a1d925c23d714ea2384f3ef6ac0e1a40aa12c97ee71c044c598898e00e2942e04d4473738f975ceaa3b35ce0294b2a00ea0a969ede
6
+ metadata.gz: 3f0439afb6121642343bcf9180164d0ae4155b13a42207b3f439bfd33709dd616a8bffb55b31855f7c80091e2e322de142acf6f46e42447e82645d221ec9185d
7
+ data.tar.gz: aae18c603de99391980735fda2deb3ac7c1320268623a6bc550578cdf7e24e9c69274224fbe90ffdb93481bd87ab75054b338e21affce221c9be70052bc7a116
@@ -92,7 +92,7 @@ module Dynflow
92
92
 
93
93
  @phase = Type! attributes.fetch(:phase), Phase
94
94
  @world = Type! world, World
95
- @step = Type! attributes.fetch(:step), ExecutionPlan::Steps::Abstract, NilClass
95
+ @step = Type! attributes.fetch(:step, nil), ExecutionPlan::Steps::Abstract, NilClass
96
96
  raise ArgumentError, 'Step reference missing' if phase?(Executable) && @step.nil?
97
97
  @execution_plan_id = Type! attributes.fetch(:execution_plan_id), String
98
98
  @id = Type! attributes.fetch(:id), Integer
@@ -1,3 +1,3 @@
1
1
  module Dynflow
2
- VERSION = '0.8.12'
2
+ VERSION = '0.8.13'
3
3
  end
@@ -98,6 +98,10 @@ module Support
98
98
  def finalize_progress_weight
99
99
  5
100
100
  end
101
+
102
+ def humanized_output
103
+ "You should #{output['message']}"
104
+ end
101
105
  end
102
106
 
103
107
  class EventedAction < Dynflow::Action
data/test/testing_test.rb CHANGED
@@ -34,6 +34,12 @@ module Dynflow
34
34
  stubbed_action.test.must_equal "test"
35
35
  end
36
36
 
37
+ specify '#create_action_presentation' do
38
+ action = create_action_presentation(Support::DummyExample::WeightedPolling)
39
+ action.output['message'] = 'make the world a better place'
40
+ action.humanized_output.must_equal 'You should make the world a better place'
41
+ end
42
+
37
43
  specify '#run_action without suspend' do
38
44
  input = { 'input' => 'input' }
39
45
  plan = create_and_plan_action Support::DummyExample::WeightedPolling, input
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.12
4
+ version: 0.8.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Necas
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-22 00:00:00.000000000 Z
12
+ date: 2016-07-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -542,7 +542,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
542
542
  version: '0'
543
543
  requirements: []
544
544
  rubyforge_project:
545
- rubygems_version: 2.4.8
545
+ rubygems_version: 2.4.5
546
546
  signing_key:
547
547
  specification_version: 4
548
548
  summary: DYNamic workFLOW engine
@@ -571,4 +571,3 @@ test_files:
571
571
  - test/testing_test.rb
572
572
  - test/web_console_test.rb
573
573
  - test/world_test.rb
574
- has_rdoc: