sitepress-core 4.1.0 → 4.1.1

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: c7461841a13cfaa83b926edf7ca3ef54ed7c9a282bd4054fa2306993a5ada35c
4
- data.tar.gz: 99f35008c96f43823b2975970cb53d9a4a6a443ab66d77f612798f2becc3733b
3
+ metadata.gz: e15a99e5f701876c5de27b3d6af643814010867088c9bfc58807a099e11a44a8
4
+ data.tar.gz: c1ad99de08178a0cd884a6e499712e16fee09501436e674d83e74c34ef533f03
5
5
  SHA512:
6
- metadata.gz: afa65610e1faa97f72fb4350794b67a8f1c2d98c37287bbfeac5b9e87d10ac84e2fdef14b5425843aa5f1533829842635711a1304affdf97e8cbe4b973a4f8e5
7
- data.tar.gz: 651e1664c6004f574eda028a331cdb5f5a69fde8613b33275ded0cb715afd6e310a17dacdb0fe1a901aec827eeb1f6453150b3293e69de9a3ade5ae38241c5b2
6
+ metadata.gz: bd9755ddebfc9f65894a680f73fb4494abb27bc7a7f73b94c66733f2119a15ab7a69b70c22b19b6654af72235a71cc888b1f40b274d4ed8ccb5e53180a221f0b
7
+ data.tar.gz: e70dd46ef793fa6734c6fe8859a1f95cd4e12392c416a55994a56f4bed6b07a59b1d2b916fb359c77b3c5e2563278ccfce8b4991fc1c04bb8c6a12fecfb39150
@@ -19,10 +19,20 @@ module Sitepress
19
19
  # When Rails boots, it sets the handler extensions so that paths
20
20
  # can be properly parsed.
21
21
  class << self
22
- attr_writer :handler_extensions
23
-
24
22
  def handler_extensions
25
- @handler_extensions ||= HANDLER_EXTENSIONS
23
+ action_view_template_handlers_extensions || HANDLER_EXTENSIONS
24
+ end
25
+
26
+ # I tried to hook this into Rails engines in the `config.after_initialize` block,
27
+ # but the way template handlers register their extensions is across the board.
28
+ #
29
+ # config.after_initialize do
30
+ # Sitepress::Path.handler_extensions = ActionView::Template::Handlers.method(:extensions)
31
+ # ends
32
+ #
33
+ # I couldn't get that working, instead I do this check to find the handlers.
34
+ def action_view_template_handlers_extensions
35
+ ActionView::Template::Handlers.extensions if defined?(ActionView::Template::Handlers)
26
36
  end
27
37
  end
28
38
 
@@ -1,3 +1,3 @@
1
1
  module Sitepress
2
- VERSION = "4.1.0".freeze
2
+ VERSION = "4.1.1".freeze
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sitepress-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-11-13 00:00:00.000000000 Z
10
+ date: 2025-11-17 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bundler