blazer-plus 0.1.0 → 0.1.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: c8f6d7b6badc12fef2efb2b24d1f870cd67a9b27f035032e227d5769a6049702
4
- data.tar.gz: e24a31f0150e99dabbc0bfe402f2b06549f1bcdaa4740b40c2bc3d82e4fdbb05
3
+ metadata.gz: e34a7321bc85c60564a51d89d0008e94fab2f1562d73b5bf954d31b2cb4d73b2
4
+ data.tar.gz: cb1547a793dde68439d5058b073e62b0fb5c348fc906813e4df14b26f90b54fb
5
5
  SHA512:
6
- metadata.gz: 678952e274cbdd82169388f508a605bff3956c4ca7e781b5e0e7441d4de420df79d08cd08924045766821004268f2285db1af9faf8aedc188584f27d3b7665da
7
- data.tar.gz: 20def0822fc82bec0b249e6d9c07b21ba9f044a027f8cdee2af2d93878043ed05151a8ed1301a36ed700ba815cb103e046d2a6044e5488432b5f3db9d5430a6d
6
+ metadata.gz: a4afd1911242d1ebcec0784ce8146f5d3b63b3763d6f48e8071159fcc695127fb37e4174a75e3c2a33839b52eaf08c4bc7bbcf456431a4ef189f6f4634393b75
7
+ data.tar.gz: 5303d33fa0188f7ad9f8f3422659d0938e1a7264872711b8d0fee6fa91770a9062248b3ca9fd66cf2d31013843103130a26592e60e4694b7a8fe7a6cf3e0283c
@@ -6,8 +6,12 @@ require_relative 'queries_controller'
6
6
  module Blazer
7
7
  module Plus
8
8
  class Railtie < ::Rails::Railtie
9
- initializer :initialize_blazer_plus, after: :load_config_initializers do
10
- Rails.application.reloader.to_prepare do
9
+ # Some gems (for example, action_policy) extend ActionController::Base in their to_prepare blocks and
10
+ # the blocks must be called before subclasses of ActionController::Base are loaded.
11
+ # So following to_prepare block must be called after other gems' to_prepare blocks.
12
+ # `before: :add_to_prepare_blocks` enforces the order of them.
13
+ initializer :initialize_blazer_plus, before: :add_to_prepare_blocks do
14
+ Rails.application.config.to_prepare do
11
15
  ::Blazer::QueriesController.prepend(::Blazer::Plus::QueriesController) if ::Blazer::Plus.enabled
12
16
  end
13
17
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Blazer
4
4
  module Plus
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blazer-plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - aki77
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-08 00:00:00.000000000 Z
11
+ date: 2024-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blazer
@@ -75,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
75
  requirements:
76
76
  - - ">="
77
77
  - !ruby/object:Gem::Version
78
- version: 3.1.0
78
+ version: 3.0.0
79
79
  required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - ">="