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 +4 -4
- data/CHANGES.md +4 -0
- data/lib/trailblazer/operation/controller.rb +1 -15
- data/lib/trailblazer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed93c4cc7b13ae2e7ae67009df6080abb36eb352
|
4
|
+
data.tar.gz: 4fcf7486acf1eb5e33e1d5cb8da05f9d47a973cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b33013263162958cb68fe02e4d2db68a4990104d29c380fb678db5eed73e9860a9b4d9b15060e69a7fd8c81796e323c317dbb8c926ded0d0cb6945bb2d0a6f8b
|
7
|
+
data.tar.gz: 3098ba9e9c415cf53b9acf6f1e14cd904d0b5680fa76bcdd2ba6686f607bd73697aa223adfec4bc25f70928cc55f61436e64584de7b009acff73ac22f8654ad1
|
data/CHANGES.md
CHANGED
@@ -27,7 +27,7 @@ private
|
|
27
27
|
|
28
28
|
yield op if res and block_given?
|
29
29
|
|
30
|
-
|
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
|
data/lib/trailblazer/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: uber
|