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 +4 -4
- data/lib/sitepress/path.rb +13 -3
- data/lib/sitepress/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: e15a99e5f701876c5de27b3d6af643814010867088c9bfc58807a099e11a44a8
|
|
4
|
+
data.tar.gz: c1ad99de08178a0cd884a6e499712e16fee09501436e674d83e74c34ef533f03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd9755ddebfc9f65894a680f73fb4494abb27bc7a7f73b94c66733f2119a15ab7a69b70c22b19b6654af72235a71cc888b1f40b274d4ed8ccb5e53180a221f0b
|
|
7
|
+
data.tar.gz: e70dd46ef793fa6734c6fe8859a1f95cd4e12392c416a55994a56f4bed6b07a59b1d2b916fb359c77b3c5e2563278ccfce8b4991fc1c04bb8c6a12fecfb39150
|
data/lib/sitepress/path.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
|
data/lib/sitepress/version.rb
CHANGED
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.
|
|
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-
|
|
10
|
+
date: 2025-11-17 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: bundler
|