crack_pipe 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: 33e156e850dd1455ecf3bb6f49d52b2441531dae
4
- data.tar.gz: 9c20ce57c7b9bdca028fe10facdbe000429d243b
3
+ metadata.gz: 2fa69e90cc9e841966e6651c94022c2c8d681524
4
+ data.tar.gz: 51f93274e6266fd7719ea7ab22f65f9f8cffaace
5
5
  SHA512:
6
- metadata.gz: 1bdd788b6e58171c7ef9ca8c667f9931749bf6e08453f7a9a5c13406003df0ebc0bd0a3d11ca173d41acd5d49092050f46b3b91dda6c29720148e4573a9efff5
7
- data.tar.gz: 10466088e351eb02413af98ac0fc6baf83846e8ee94801f66234cbbe9e8a6d3c857527d963e21a5e493a29ba68889052c0563a6cce0c02c920138f5807bfc3ed
6
+ metadata.gz: 43ce34d2f457616bd614a6098c12aa3be3cd4f83d7c680065751c6886532af6cf114a4b6c0c70d12b8151d74b443c531fdc007134499a379bc9fcfcca41682c8
7
+ data.tar.gz: 3a7590c007d3d101ebec37576ce00b4e96e823a54e18950b22ed5d90ed44e7030b0c6e44a31f2286b81f207035464ba4e0c20f559da7941a23062ecba92fd9fb
@@ -14,6 +14,7 @@ module CrackPipe
14
14
  action.steps.each_with_object([]) do |s, results|
15
15
  next unless track == s.track
16
16
  results!(results, action, s, context).last.tap do |r|
17
+ action.after_flow_control(r)
17
18
  context = r[:context]
18
19
  track = r[:next]
19
20
  return results if r[:signal] == :halt
@@ -58,6 +58,14 @@ module CrackPipe
58
58
  Exec.(self, context)
59
59
  end
60
60
 
61
+ # NOTE: This hook is here if you absolutely must do something to mutate the
62
+ # last flow control hash after a step has been executed. You can alter the
63
+ # context before it is passed to another step, insert a signal, or even pass
64
+ # custom key/value pairs that may be useful for debugging.
65
+ def after_flow_control(flow_control_hash)
66
+ flow_control_hash
67
+ end
68
+
61
69
  # NOTE: While this hook does nothing by default, it is here with the
62
70
  # intention of dealing with potential default values being generated either
63
71
  # for output or adding values to the context. A common example would be
@@ -3,7 +3,7 @@
3
3
  module CrackPipe
4
4
  MAJOR = 0
5
5
  MINOR = 2
6
- TINY = 1
6
+ TINY = 2
7
7
  VERSION = [MAJOR, MINOR, TINY].join('.').freeze
8
8
 
9
9
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crack_pipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua