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 +4 -4
- data/lib/blazer/plus/railtie.rb +6 -2
- data/lib/blazer/plus/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e34a7321bc85c60564a51d89d0008e94fab2f1562d73b5bf954d31b2cb4d73b2
|
4
|
+
data.tar.gz: cb1547a793dde68439d5058b073e62b0fb5c348fc906813e4df14b26f90b54fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4afd1911242d1ebcec0784ce8146f5d3b63b3763d6f48e8071159fcc695127fb37e4174a75e3c2a33839b52eaf08c4bc7bbcf456431a4ef189f6f4634393b75
|
7
|
+
data.tar.gz: 5303d33fa0188f7ad9f8f3422659d0938e1a7264872711b8d0fee6fa91770a9062248b3ca9fd66cf2d31013843103130a26592e60e4694b7a8fe7a6cf3e0283c
|
data/lib/blazer/plus/railtie.rb
CHANGED
@@ -6,8 +6,12 @@ require_relative 'queries_controller'
|
|
6
6
|
module Blazer
|
7
7
|
module Plus
|
8
8
|
class Railtie < ::Rails::Railtie
|
9
|
-
|
10
|
-
|
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
|
data/lib/blazer/plus/version.rb
CHANGED
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.
|
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:
|
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.
|
78
|
+
version: 3.0.0
|
79
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - ">="
|