trailblazer 1.0.3 → 1.0.4

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: 8454dcf811b4b74b99a2413804772578ec4e2d72
4
- data.tar.gz: d62c716532ac9c2ab09c21b4480a1300429e8fc1
3
+ metadata.gz: ed93c4cc7b13ae2e7ae67009df6080abb36eb352
4
+ data.tar.gz: 4fcf7486acf1eb5e33e1d5cb8da05f9d47a973cf
5
5
  SHA512:
6
- metadata.gz: dd1c1e75a64ebe515d5c1ccd1819eb1199e4ecc522673f23c43ec36450435f531e8891d240e8f193d8e482f25fee4e42138e77844d74dd1fb773f76c9faf2164
7
- data.tar.gz: e69578a12d51a7e44800c7ec811a614a6432bbab438751dbcd57f7f6ba7cd4b347b54512e238c7ada0c8c1f606234d22668f34294d51a002eaec7f45d7cd8e4a
6
+ metadata.gz: b33013263162958cb68fe02e4d2db68a4990104d29c380fb678db5eed73e9860a9b4d9b15060e69a7fd8c81796e323c317dbb8c926ded0d0cb6945bb2d0a6f8b
7
+ data.tar.gz: 3098ba9e9c415cf53b9acf6f1e14cd904d0b5680fa76bcdd2ba6686f607bd73697aa223adfec4bc25f70928cc55f61436e64584de7b009acff73ac22f8654ad1
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.0.4
2
+
3
+ * Fix `Controller#run`, which now returns the operation instance instead of the `Else` object.
4
+
1
5
  # 1.0.3
2
6
 
3
7
  Remove unprofessional `puts`, @smathy.
@@ -27,7 +27,7 @@ private
27
27
 
28
28
  yield op if res and block_given?
29
29
 
30
- Else.new(op, !res)
30
+ op
31
31
  end
32
32
 
33
33
  # The block passed to #respond is always run, regardless of the validity result.
@@ -81,18 +81,4 @@ Please provide a custom params via `run Comment::Create, params: {..}` and have
81
81
  @model = operation.model
82
82
  @form = operation.contract unless options[:skip_form]
83
83
  end
84
-
85
-
86
- # Note: this is not documented on purpose as this concept is experimental. I don't like it too much and prefer
87
- # returns in the valid block.
88
- class Else
89
- def initialize(op, run)
90
- @op = op
91
- @run = run
92
- end
93
-
94
- def else
95
- yield @op if @run
96
- end
97
- end
98
84
  end
@@ -1,3 +1,3 @@
1
1
  module Trailblazer
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailblazer
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
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-05 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uber