view_component 4.24.0 → 4.25.0
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/docs/CHANGELOG.md +18 -0
- data/lib/view_component/compiler.rb +5 -2
- data/lib/view_component/template.rb +0 -1
- data/lib/view_component/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0cd875399758c82426fbf9c6af2fe4f0b89327a938799fb179d03ff24407a59b
|
|
4
|
+
data.tar.gz: 105949e0810703937fd64c7bfb45f9d641d189fa1493fcb19b20c3efa4b0576c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 625542a09b7bd7fe423e59a64ff89487d48c7a123874a1390f13f947ab782ad4567fd656abcfc238096a6b06a30e495c634d10d55d6e89145eb659e686fc3555
|
|
7
|
+
data.tar.gz: 33bd7f7d84027037faf299c7904a936f2848a3001ccf632cf9bde3e5ccabeb9bb5375a3dde009669228fbfc0dff790e8875f2d092fea6d59ce7bdef3b944e36c
|
data/docs/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,24 @@ nav_order: 6
|
|
|
10
10
|
|
|
11
11
|
## main
|
|
12
12
|
|
|
13
|
+
## 4.25.0
|
|
14
|
+
|
|
15
|
+
* Fix inherited `#call` methods overriding subclass sidecar templates for non-HTML requests.
|
|
16
|
+
|
|
17
|
+
*Joel Hawksley*
|
|
18
|
+
|
|
19
|
+
* Pin Chrome in all Primer ViewComponents compatibility suites to match upstream system tests.
|
|
20
|
+
|
|
21
|
+
*Joel Hawksley*
|
|
22
|
+
|
|
23
|
+
* Fix automated dependency updates when Ruby head includes unpublished default gems, including frozen CI installs.
|
|
24
|
+
|
|
25
|
+
*Joel Hawksley*
|
|
26
|
+
|
|
27
|
+
* Update all bundle lockfiles and both Rails main builds through a single daily automated pull request.
|
|
28
|
+
|
|
29
|
+
*Joel Hawksley*
|
|
30
|
+
|
|
13
31
|
## 4.24.0
|
|
14
32
|
|
|
15
33
|
* Harden GitHub Actions workflows and dependency updates to address code-scanning alerts.
|
|
@@ -85,7 +85,7 @@ module ViewComponent
|
|
|
85
85
|
#
|
|
86
86
|
# @return [Array<Symbol>]
|
|
87
87
|
def template_formats
|
|
88
|
-
gather_templates.map { |template| template.format ||
|
|
88
|
+
gather_templates.map { |template| template.format || Template::DEFAULT_FORMAT }.uniq
|
|
89
89
|
end
|
|
90
90
|
|
|
91
91
|
# @private
|
|
@@ -255,7 +255,10 @@ module ViewComponent
|
|
|
255
255
|
if inherited.any?
|
|
256
256
|
# A format and a variant can share a public call_* alias.
|
|
257
257
|
inherited.each do |template|
|
|
258
|
-
next if templates.any?
|
|
258
|
+
next if templates.any? do |own|
|
|
259
|
+
own.variant == template.variant &&
|
|
260
|
+
(own.format || Template::DEFAULT_FORMAT) == (template.format || Template::DEFAULT_FORMAT)
|
|
261
|
+
end
|
|
259
262
|
|
|
260
263
|
templates << Template::Inherited.new(component: @component, template: template)
|
|
261
264
|
end
|