floe 0.11.0 → 0.11.1

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
2
  SHA256:
3
- metadata.gz: e0c91f1170b6abe30e09d32d976efb4644fc3ac5e689274ef49a471bfb53ef8c
4
- data.tar.gz: 48b2b6f51342ca80771f498dec85491f3c57ed4943e26cfbbce1ef1d3ade6029
3
+ metadata.gz: ddff07ec60a21f0d90224e992e9e08d51c420a66203daf3d2f9a46257b0df9fa
4
+ data.tar.gz: bd1dee4d43ea4e62bae056893342aec18fd3acfdcde4b916c1f8cb3f04f9607e
5
5
  SHA512:
6
- metadata.gz: 594a89242eb6e27a345b3d5f49b93c6b362d0064d62c7154ce8e554e84f6f02a669b96a815959553c3eb6239453a26cc00a2d181d5cb7b508ee219e6891a156a
7
- data.tar.gz: 519e65a57c5dd1e639705d280c89cb6868a17e05f750e7d903f8a1ae7aaae38c11839bf04fc2e7d157005fd99ca302773ddfe5cf8612c79d45efafde3de71c39
6
+ metadata.gz: 54c7fc79d150ff6801ab36b686fea09543902ee8a76b2fb787a5e038bc2dfef6c55a33f628f4abb888c057db73ab51613aea545a643a64adbaffe6895bc1e8cb
7
+ data.tar.gz: 3b73fadfc840a7f69d923116005f174a07d7e8f9ddd878e852c979563bcd7b63ff1acc7461c9222c48bd598e169fe010a786f970c37029d1225c4fe78118a624
data/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.11.1] - 2024-05-20
8
+ ### Fixed
9
+ - Fix issue where a failed state can leave a workflow in "running" ([#182](https://github.com/ManageIQ/floe/pull/182))
10
+
11
+ ### Changed
12
+ - Drop unused Task#status ([#180](https://github.com/ManageIQ/floe/pull/180))
13
+ - Check task failed? in non_terminal_mixin ([#183](https://github.com/ManageIQ/floe/pull/183))
14
+
7
15
  ## [0.11.0] - 2024-05-02
8
16
  ### Fixed
9
17
  - Ensure the local code is loaded in exe/floe ([#173](https://github.com/ManageIQ/floe/pull/173))
@@ -165,7 +173,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
165
173
  ### Added
166
174
  - Initial release
167
175
 
168
- [Unreleased]: https://github.com/ManageIQ/floe/compare/v0.11.0...HEAD
176
+ [Unreleased]: https://github.com/ManageIQ/floe/compare/v0.11.1...HEAD
177
+ [0.11.1]: https://github.com/ManageIQ/floe/compare/v0.11.0...v0.11.1
169
178
  [0.11.0]: https://github.com/ManageIQ/floe/compare/v0.10.0...v0.11.0
170
179
  [0.10.0]: https://github.com/ManageIQ/floe/compare/v0.9.0...v0.10.0
171
180
  [0.9.0]: https://github.com/ManageIQ/floe/compare/v0.8.0...v0.9.0
data/lib/floe/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Floe
4
- VERSION = "0.11.0"
4
+ VERSION = "0.11.1"
5
5
  end
@@ -5,7 +5,9 @@ module Floe
5
5
  module States
6
6
  module NonTerminalMixin
7
7
  def finish
8
- context.next_state = end? ? nil : @next
8
+ # If this state is failed or the End state set next_state to nil
9
+ context.next_state = end? || context.failed? ? nil : @next
10
+
9
11
  super
10
12
  end
11
13
 
@@ -25,9 +25,8 @@ module Floe
25
25
  end
26
26
 
27
27
  def finish
28
- input = process_input(context.input)
29
- context.output = process_output(input, result)
30
- context.next_state = end? ? nil : @next
28
+ input = process_input(context.input)
29
+ context.output = process_output(input, result)
31
30
  super
32
31
  end
33
32
 
@@ -41,10 +41,6 @@ module Floe
41
41
  context.state["RunnerContext"] = runner_context
42
42
  end
43
43
 
44
- def status
45
- @end ? "success" : "running"
46
- end
47
-
48
44
  def finish
49
45
  output = runner.output(context.state["RunnerContext"])
50
46
 
@@ -53,7 +49,6 @@ module Floe
53
49
  context.output = process_output(context.input.dup, output)
54
50
  super
55
51
  else
56
- context.next_state = nil
57
52
  context.output = error = parse_error(output)
58
53
  super
59
54
  retry_state!(error) || catch_error!(error) || fail_workflow!(error)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: floe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-02 00:00:00.000000000 Z
11
+ date: 2024-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_spawn