switchman 4.3.6 → 4.3.8
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/lib/switchman/engine.rb +9 -1
- data/lib/switchman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06afc2db76ce24db251cf0485b461a73b673f3b4dbbaad3a5a627970636529f8
|
|
4
|
+
data.tar.gz: db6536cdafbbf26452df0ca7de368b5bb8f7432e5108368350388c0ea1ce3122
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 20b3089547fd6eb276b080d8abb701ea11e260aeceb36c712a899f42182df71dd91e7d3d2d70a2f49a552cd3382ad563dcf64a6755a23912d16e50c89b552296
|
|
7
|
+
data.tar.gz: 6b015407234bfc385c129e4bee79c202fee8fceb4a10393cb4e096c86dcbd560d8ff19181ee2deaaa0f98ed48544660aa677751813c953491f46a9a9c86dcece
|
data/lib/switchman/engine.rb
CHANGED
|
@@ -120,6 +120,12 @@ module Switchman
|
|
|
120
120
|
end
|
|
121
121
|
end
|
|
122
122
|
|
|
123
|
+
initializer "switchman.ensure_time_zone_loaded",
|
|
124
|
+
before: :initialize_cache,
|
|
125
|
+
after: "active_support.initialize_time_zone" do
|
|
126
|
+
# nothing; just ensures that Time.zone_default is set up before the following initializer
|
|
127
|
+
end
|
|
128
|
+
|
|
123
129
|
initializer "switchman.initialize_cache", before: :initialize_cache, after: "active_record.initialize_database" do
|
|
124
130
|
::ActiveSupport::Cache.singleton_class.prepend(ActiveSupport::Cache::ClassMethods)
|
|
125
131
|
|
|
@@ -159,7 +165,9 @@ module Switchman
|
|
|
159
165
|
::Rails.cache = Switchman.config[:cache_map][::Rails.env]
|
|
160
166
|
::Rails.singleton_class.prepend(Rails::ClassMethods)
|
|
161
167
|
|
|
162
|
-
|
|
168
|
+
# :action_controller also fires for ActionController::API, which must not
|
|
169
|
+
# get our cache_store= override; Rails assigns to it during boot.
|
|
170
|
+
::ActiveSupport.on_load(:action_controller_base) do
|
|
163
171
|
include ActionController::Caching
|
|
164
172
|
end
|
|
165
173
|
end
|
data/lib/switchman/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: switchman
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.3.
|
|
4
|
+
version: 4.3.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cody Cutrer
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2026-09-
|
|
13
|
+
date: 2026-09-14 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activerecord
|