porch 0.2.0 → 0.2.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
  SHA1:
3
- metadata.gz: 8ca5b85da7d6e9f54bdb5474e15320cdb7eb5045
4
- data.tar.gz: fa4803e50502d7bc92816de9857a05c82ec49d2a
3
+ metadata.gz: 04e04f39b35881268ed6e64d143ef45429951467
4
+ data.tar.gz: 5c6caa30d321876b6c6e732951124ad3a1003302
5
5
  SHA512:
6
- metadata.gz: 4be1ef22ded594338c326c1623d9d3dd74f2bece271514f426cc7e4870bb7db059f72e6e430d24c4dabfe2c79b1a4273ccc239bbfa4c4c84101196488f2c6894
7
- data.tar.gz: 83dfc12f0b384a384faa0b9023234d64c0d83b1f2774772de23886ed20026288d12d5574f97254029433dd6dbc8d7eccab706f914412471f6e5f092ac6534e79
6
+ metadata.gz: 61e291e87a7b2081b40d48e59db70588e2fd3e36925158f5c348877c1787267238efe36b0272c3d5702faf3abaa2fe60081a887a2d73eb493f11f08fc309556d
7
+ data.tar.gz: e2d7d7705a1f3da1f2dfa3cea70962d94c4cfdf6eeae51f7eb284693a170b00c6e00b14d49750ce2a8e271dcda6580e9414d930abcbeaeb508604f148cde4915
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- porch (0.2.0)
4
+ porch (0.2.1)
5
5
  dry-validation (~> 0.10.4)
6
6
 
7
7
  GEM
data/lib/porch/context.rb CHANGED
@@ -44,6 +44,12 @@ module Porch
44
44
  super
45
45
  end
46
46
 
47
+ def next(&block)
48
+ result = Guard.new(self).against(&block)
49
+ raise Porch::ContextStoppedError.new(self) if result.failure?
50
+ result
51
+ end
52
+
47
53
  def skip_remaining?
48
54
  !!@skip_remaining
49
55
  end
@@ -15,13 +15,11 @@ module Porch
15
15
  end
16
16
 
17
17
  def execute(context)
18
- catch :stop_current_step_execution do
19
- begin
20
- decorated_step.execute context
21
- rescue Porch::ContextStoppedError => e
22
- # this exception is just used for flow control
23
- e.context
24
- end
18
+ begin
19
+ decorated_step.execute context
20
+ rescue Porch::ContextStoppedError => e
21
+ # this exception is just used for flow control
22
+ e.context
25
23
  end
26
24
  end
27
25
 
data/lib/porch/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Porch
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: porch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Wright
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-06 00:00:00.000000000 Z
11
+ date: 2017-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-validation
@@ -99,6 +99,7 @@ files:
99
99
  - lib/porch/step_decorators/proc_step_decorator.rb
100
100
  - lib/porch/version.rb
101
101
  - pkg/porch-0.1.0.gem
102
+ - pkg/porch-0.2.0.gem
102
103
  - porch.gemspec
103
104
  homepage: https://github.com/jwright/porch
104
105
  licenses: