trailblazer-rails 2.3.0 → 2.4.0

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: e43931b1874b64a31a8a64c738d6568a213c3fa4d796f4dd28d93b894f3c928a
4
- data.tar.gz: d51bde81af75fcd5fead6b78a2e27b1caddbd1e0b86bf575a139784fd92bd306
3
+ metadata.gz: fe070d02341d42cec07e9681ea5f846cf28e053c5c863bb60bf2252b80898b8c
4
+ data.tar.gz: defcb8d97fc97fc542c62cb2d9f9051ccca365f1318921d239bb7b408122077c
5
5
  SHA512:
6
- metadata.gz: 430cc9f51fe61f924a9d82581ddbcd00343a7b70956e85f82da8cd4a31577e95533f887ab13889a947982957ccebdcca31e1402414886dcb1c5e775ab0fe8421
7
- data.tar.gz: 65c5490e4030fb7638e3cab85d3d7e1a1f7a320e85f5f84cf884f622ce945b86738e34819b835bf883801afe09bb7773aa33d4a399d0a9e5db62d6cd6addb700
6
+ metadata.gz: 7b372914675637bb7d93377eac15c199abb6985f59f872025aaa1fc87da329b197733ddd9dc2ff4dc99b00668a49364566eb68181e1d14c1ce9feee6a7d00c71
7
+ data.tar.gz: ad1efced8aea0c07de9d425f9cd131ccaf9aeccc5042a208de03a1d218729f5d23c2e7f1bb9e2b3cc00dac7cdf43da3bae50c7079025941d5dd13fd35e1ecba9
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.4.0
2
+ * Remove legacy code belonging to the old `trailblazer-loader` gem.
3
+ * Use ActionController::API in addition to ActionController::Base to add the `run` method.
4
+
1
5
  # 2.3.0
2
6
  * Remove loader support (no longer needed as zeitwerk is now a better alternative)
3
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- trailblazer-rails (2.3.0)
4
+ trailblazer-rails (2.4.0)
5
5
  railties (>= 5.2.0)
6
6
  trailblazer (>= 2.1.0, < 2.2.0)
7
7
 
@@ -180,4 +180,4 @@ DEPENDENCIES
180
180
  trailblazer-rails!
181
181
 
182
182
  BUNDLED WITH
183
- 2.2.22
183
+ 2.2.33
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- trailblazer-rails (2.3.0)
4
+ trailblazer-rails (2.4.0)
5
5
  railties (>= 5.2.0)
6
6
  trailblazer (>= 2.1.0, < 2.2.0)
7
7
 
@@ -180,4 +180,4 @@ DEPENDENCIES
180
180
  trailblazer-rails!
181
181
 
182
182
  BUNDLED WITH
183
- 2.2.22
183
+ 2.2.33
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- trailblazer-rails (2.3.0)
4
+ trailblazer-rails (2.4.0)
5
5
  railties (>= 5.2.0)
6
6
  trailblazer (>= 2.1.0, < 2.2.0)
7
7
 
@@ -179,4 +179,4 @@ DEPENDENCIES
179
179
  trailblazer-rails!
180
180
 
181
181
  BUNDLED WITH
182
- 2.2.22
182
+ 2.2.33
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- trailblazer-rails (2.3.0)
4
+ trailblazer-rails (2.4.0)
5
5
  railties (>= 5.2.0)
6
6
  trailblazer (>= 2.1.0, < 2.2.0)
7
7
 
@@ -156,7 +156,7 @@ GEM
156
156
  uber (0.1.0)
157
157
  xpath (3.2.0)
158
158
  nokogiri (~> 1.8)
159
- zeitwerk (2.5.1)
159
+ zeitwerk (2.5.2)
160
160
 
161
161
  PLATFORMS
162
162
  x86_64-linux
@@ -179,4 +179,4 @@ DEPENDENCIES
179
179
  trailblazer-rails!
180
180
 
181
181
  BUNDLED WITH
182
- 2.2.22
182
+ 2.2.33
@@ -4,14 +4,12 @@ module Trailblazer
4
4
  class Railtie < ::Rails::Railtie
5
5
  config.trailblazer = ActiveSupport::OrderedOptions.new
6
6
  ## Accept also an Array of controllers
7
- config.trailblazer.application_controller ||= "ActionController::Base"
7
+ config.trailblazer.application_controller ||= %w[ActionController::Base ActionController::API]
8
8
  config.trailblazer.enable_tracing ||= false
9
9
 
10
10
  initializer "trailblazer.application_controller", before: "finisher_hook" do
11
- ActiveSupport::Reloader.to_prepare do
12
- ActiveSupport.on_load(:action_controller) do |app|
13
- Trailblazer::Railtie.extend_application_controller!(app)
14
- end
11
+ ActiveSupport.on_load(:action_controller) do |app|
12
+ Trailblazer::Railtie.extend_application_controller!(app)
15
13
  end
16
14
  end
17
15
 
@@ -1,5 +1,5 @@
1
1
  module Trailblazer
2
2
  module Rails
3
- VERSION = "2.3.0".freeze
3
+ VERSION = "2.4.0".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.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-13 00:00:00.000000000 Z
11
+ date: 2022-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  requirements: []
139
- rubygems_version: 3.2.22
139
+ rubygems_version: 3.2.3
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Convenient Rails support for Trailblazer.