trailblazer-rails 2.4.1 → 2.4.2

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
  SHA256:
3
- metadata.gz: 1ac9dffebfdbbac3059ac33b30b6b3fc58958d10af2de83c0113c634e4def667
4
- data.tar.gz: 74a09ebe5100532430d532c83c69ab5e7dccfe21bf0fdfbbf407af6268652cef
3
+ metadata.gz: 9faf7799e32876341a5879295f057abdfd07e604d6514dffea13ae45e32a927e
4
+ data.tar.gz: c2798545a46b91da97399c51d1958f425c3d14aaf5c76f996fba153be18cd486
5
5
  SHA512:
6
- metadata.gz: dfd30ba60691fa98acd40e32498dd75a768a23783fd6f62dbf5fce4cfd67684b35bbf2b6ae384112a1acbad1ac65eb60d1c21d305c24c6c0f98fbefb6ae36a33
7
- data.tar.gz: e95e9d4e38226bba64a06fb9483e815373ac5ed58ff41d8e5ae279042d5db3feac18e1cec4e06ea1784488d9e01ff044049a3b4472cd0b24f40d84e3a1f4d460
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)
@@ -1,5 +1,5 @@
1
1
  module Trailblazer
2
2
  module Rails
3
- VERSION = "2.4.1".freeze
3
+ VERSION = "2.4.2".freeze
4
4
  end
5
5
  end
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.1
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-06-30 00:00:00.000000000 Z
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.1.6
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: []