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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2006f24bb61000cf22294395b7597c5551a56600b7c1b1fea0923f3d94e498e3
4
- data.tar.gz: 30818e17d6547d86d46936e01c2df78118bbf992667cd1614c69bab9e173211c
3
+ metadata.gz: 06afc2db76ce24db251cf0485b461a73b673f3b4dbbaad3a5a627970636529f8
4
+ data.tar.gz: db6536cdafbbf26452df0ca7de368b5bb8f7432e5108368350388c0ea1ce3122
5
5
  SHA512:
6
- metadata.gz: 110c91ddc723bde6ec5cbacbb992a67d87da0880fca81e22ff1b3c8d7852b0a53bc3024501c9eaae3c7a5f355615a5f6d880faf4fd5ace003adc148bcb14d3a8
7
- data.tar.gz: '08a4458dcd9fa616e9079bd98f3609c42fa397941426c69725d517018c19b3e88dd952702c9bd7870112e8210fb85d94c8d6f706199aac1554c371e1f46b6f29'
6
+ metadata.gz: 20b3089547fd6eb276b080d8abb701ea11e260aeceb36c712a899f42182df71dd91e7d3d2d70a2f49a552cd3382ad563dcf64a6755a23912d16e50c89b552296
7
+ data.tar.gz: 6b015407234bfc385c129e4bee79c202fee8fceb4a10393cb4e096c86dcbd560d8ff19181ee2deaaa0f98ed48544660aa677751813c953491f46a9a9c86dcece
@@ -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
- ::ActiveSupport.on_load(:action_controller) do
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Switchman
4
- VERSION = "4.3.6"
4
+ VERSION = "4.3.8"
5
5
  end
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.6
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-10 00:00:00.000000000 Z
13
+ date: 2026-09-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord