dynflow 1.0.3 → 1.0.4

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
- SHA256:
3
- metadata.gz: 496dae66a524bd0ede6a777b555b2cd38488fbe31db105d1fb0d8f71d765038e
4
- data.tar.gz: 696856cee44db5d23f0ca4a3b139397ab942a31c573f133aac1f5c2115852833
2
+ SHA1:
3
+ metadata.gz: '085cf607bfa2da0da617fa6d5b02b44db8ffc038'
4
+ data.tar.gz: d212611e59f46a686277f7318795239d5f36c109
5
5
  SHA512:
6
- metadata.gz: 27cf8a56c6a94d0407051542dfbe495c67e46ca5a0b1c6558835f37cf8ba0335c9c3e249866d9dfa45247c54ed64cf7b355f759147150546b7b885b3ad521581
7
- data.tar.gz: c40e8eaa9977fa076cf86281d84dd05dc90335260b97453a50a60dc9e05fe45534204ca0d89530c94fdcc2c9dc81f9e3fbfd0f363f0e9085aed3a43b05def968
6
+ metadata.gz: bd10ae9a1ccc68899f6723f646c7f32c9bb0d7ad5b463d94cdceed56a61ab42c83412206bd6e73f6983d627b4b2c58bcaf504676b9a3a4dce69781d4f90e2637
7
+ data.tar.gz: e08f5bac717d9898ebcbbbe12d79eedc2cc5175cbe911e57a79db65f24c9889b5a018e9220c3361baa4c1c23178c72684171fefb8d925729f980745218a5df03
data/dynflow.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Dynflow::VERSION
8
8
  s.authors = ["Ivan Necas", "Petr Chalupa"]
9
9
  s.email = ["inecas@redhat.com"]
10
- s.homepage = "http://github.com/Dynflow/dynflow"
10
+ s.homepage = "https://github.com/Dynflow/dynflow"
11
11
  s.summary = "DYNamic workFLOW engine"
12
12
  s.description = "Ruby workflow/orchestration engine"
13
13
  s.license = "MIT"
@@ -142,7 +142,9 @@ module Dynflow
142
142
  action_ids = records.compact.map { |record| record[:id] }
143
143
  return if action_ids.empty?
144
144
  persistence.load_actions(self, action_ids).each do |action|
145
- action.class.execution_plan_hooks.run(self, action, state)
145
+ world.middleware.execute(:hook, action, self) do
146
+ action.class.execution_plan_hooks.run(self, action, state)
147
+ end
146
148
  end
147
149
  end
148
150
 
@@ -50,5 +50,9 @@ module Dynflow
50
50
  def present
51
51
  pass
52
52
  end
53
+
54
+ def hook(*args)
55
+ pass(*args)
56
+ end
53
57
  end
54
58
  end
@@ -14,7 +14,7 @@ module Dynflow
14
14
  @middleware_class = Child! middleware_class, Middleware
15
15
  @middleware = middleware_class.new self
16
16
  @action = Type! action, Dynflow::Action, NilClass
17
- @method = Match! method, :delay, :plan, :run, :finalize, :plan_phase, :finalize_phase, :present
17
+ @method = Match! method, :delay, :plan, :run, :finalize, :plan_phase, :finalize_phase, :present, :hook
18
18
  @next_stack = Type! next_stack, Middleware::Stack, Proc
19
19
  end
20
20
 
@@ -14,7 +14,7 @@ module Dynflow
14
14
  end
15
15
 
16
16
  def execute(method, action_or_class, *args, &block)
17
- Match! method, :delay, :plan, :run, :finalize, :plan_phase, :finalize_phase, :present
17
+ Match! method, :delay, :plan, :run, :finalize, :plan_phase, :finalize_phase, :present, :hook
18
18
  if Child? action_or_class, Dynflow::Action
19
19
  action = nil
20
20
  action_class = action_or_class
@@ -1,3 +1,3 @@
1
1
  module Dynflow
2
- VERSION = '1.0.3'.freeze
2
+ VERSION = '1.0.4'.freeze
3
3
  end
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: 1.0.3
4
+ version: 1.0.4
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: 2018-05-15 00:00:00.000000000 Z
12
+ date: 2018-06-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -582,7 +582,7 @@ files:
582
582
  - web/views/show.erb
583
583
  - web/views/world_validation_result.erb
584
584
  - web/views/worlds.erb
585
- homepage: http://github.com/Dynflow/dynflow
585
+ homepage: https://github.com/Dynflow/dynflow
586
586
  licenses:
587
587
  - MIT
588
588
  metadata: {}
@@ -602,7 +602,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
602
602
  version: '0'
603
603
  requirements: []
604
604
  rubyforge_project:
605
- rubygems_version: 2.7.3
605
+ rubygems_version: 2.6.12
606
606
  signing_key:
607
607
  specification_version: 4
608
608
  summary: DYNamic workFLOW engine