trailblazer-rails 2.4.1 → 2.4.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 +4 -4
- data/CHANGES.md +5 -1
- data/README.md +10 -0
- data/lib/trailblazer/rails/controller.rb +3 -1
- data/lib/trailblazer/rails/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9faf7799e32876341a5879295f057abdfd07e604d6514dffea13ae45e32a927e
|
|
4
|
+
data.tar.gz: c2798545a46b91da97399c51d1958f425c3d14aaf5c76f996fba153be18cd486
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b2b1685d78a0b221fb6631187bbf07723d03716202dffebf0d4affeb9b753bdb133f506280c9294143eec94d028045985a7ed395d5b1c2d530ea64a0648abed
|
|
7
|
+
data.tar.gz: 20ac39cc9d69742d70590b201ce2d66a11d40fcbe2ad68f11aa9b297fa9fc5b5ed995761b00d6f5c0b1d2ca0618089c7721ade8de6cab4c8a9942d602be8cbfb
|
data/CHANGES.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
# 2.4.2
|
|
2
|
+
|
|
3
|
+
* Fix a bug where `Controller#run` wouldn't return the ctx.
|
|
4
|
+
|
|
1
5
|
# 2.4.1
|
|
2
6
|
|
|
3
|
-
* Pass keyword arguments to the success result block
|
|
7
|
+
* Pass keyword arguments to the success result block.
|
|
4
8
|
|
|
5
9
|
# 2.4.0
|
|
6
10
|
* Remove legacy code belonging to the old `trailblazer-loader` gem.
|
data/README.md
CHANGED
|
@@ -36,6 +36,16 @@ Note that the 2.x version only runs with TRB >= 2.1.0.
|
|
|
36
36
|
* `config.trailblazer.enable_loader = false` to disable Trailblazer loader (default TRUE)
|
|
37
37
|
* `config.trailblazer.enable_tracing = true` to enable tracing when using `run` (default FALSE)
|
|
38
38
|
|
|
39
|
+
## Testing
|
|
40
|
+
|
|
41
|
+
If you feel like contributing, you can run the test suite per Rails version as follows.
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
$ BUNDLE_GEMFILE=gemfiles/rails_7.0.gemfile bundle exec rake db:create db:schema:load test
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Successful merges will be rewarded with at least one beer!
|
|
48
|
+
|
|
39
49
|
## License
|
|
40
50
|
|
|
41
51
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
@@ -12,13 +12,15 @@ module Trailblazer::Rails
|
|
|
12
12
|
|
|
13
13
|
@_result = result
|
|
14
14
|
|
|
15
|
-
return if result.failure? || block.nil?
|
|
15
|
+
return result if result.failure? || block.nil?
|
|
16
16
|
|
|
17
17
|
if block.arity.eql?(1)
|
|
18
18
|
yield(result)
|
|
19
19
|
else
|
|
20
20
|
yield(result, **result.to_hash)
|
|
21
21
|
end
|
|
22
|
+
|
|
23
|
+
result
|
|
22
24
|
end
|
|
23
25
|
|
|
24
26
|
alias run run_v21 unless method_defined?(:run)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trailblazer-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.4.
|
|
4
|
+
version: 2.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nick Sutterer
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|
|
@@ -86,7 +86,7 @@ dependencies:
|
|
|
86
86
|
- - ">="
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
88
|
version: '0'
|
|
89
|
-
description:
|
|
89
|
+
description:
|
|
90
90
|
email:
|
|
91
91
|
- apotonick@gmail.com
|
|
92
92
|
executables: []
|
|
@@ -122,7 +122,7 @@ homepage: https://trailblazer.to/2.1/docs/trailblazer.html#trailblazer-rails
|
|
|
122
122
|
licenses:
|
|
123
123
|
- MIT
|
|
124
124
|
metadata: {}
|
|
125
|
-
post_install_message:
|
|
125
|
+
post_install_message:
|
|
126
126
|
rdoc_options: []
|
|
127
127
|
require_paths:
|
|
128
128
|
- lib
|
|
@@ -137,8 +137,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
138
|
version: '0'
|
|
139
139
|
requirements: []
|
|
140
|
-
rubygems_version: 3.
|
|
141
|
-
signing_key:
|
|
140
|
+
rubygems_version: 3.2.3
|
|
141
|
+
signing_key:
|
|
142
142
|
specification_version: 4
|
|
143
143
|
summary: Convenient Rails support for Trailblazer.
|
|
144
144
|
test_files: []
|