view_component 3.6.0 → 3.7.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 +31 -0
- data/lib/view_component/base.rb +2 -1
- data/lib/view_component/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: 47e62a0d72c8f9b594303a04d917565ea3766f30ee1335154643e311f92b6128
|
|
4
|
+
data.tar.gz: 412377cfaf624ddfb930d52dcf07a469666f57024d35712f71f752f454f507a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f55188297a16933853b95796a14686a29c1ba14eab0cf50d965c28ad8a18664cdafe8ebb12c700c5877f533b6ddb112cbba8dd498735d4a1f66a9b37647f33bd
|
|
7
|
+
data.tar.gz: 780c452ac9a0e33079ca50d49408c74a1c69f427836415c6c08bbdd82f0cb098a646859d26da8ecd93affe8724ab871ed08a210234a9fff71d68ba0ab7668fe8
|
data/docs/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,37 @@ nav_order: 5
|
|
|
10
10
|
|
|
11
11
|
## main
|
|
12
12
|
|
|
13
|
+
## 3.7.0
|
|
14
|
+
|
|
15
|
+
* Support Rails 7.1 in CI.
|
|
16
|
+
|
|
17
|
+
*Reegan Viljoen*
|
|
18
|
+
*Cameron Dutro*
|
|
19
|
+
|
|
20
|
+
* Document the capture compatibility patch on the Known issues page.
|
|
21
|
+
|
|
22
|
+
*Simon Fish*
|
|
23
|
+
|
|
24
|
+
* Add Simundia to list of companies using ViewComponent.
|
|
25
|
+
|
|
26
|
+
*Alexandre Ignjatovic*
|
|
27
|
+
|
|
28
|
+
* Reduce UnboundMethod objects by memoizing initialize_parameters.
|
|
29
|
+
|
|
30
|
+
*Rainer Borene*
|
|
31
|
+
|
|
32
|
+
* Improve docs about inline templates interpolation.
|
|
33
|
+
|
|
34
|
+
*Hans Lemuet*
|
|
35
|
+
|
|
36
|
+
* Update generators.md to clarify the way of changing `config.view_component.view_component_path`.
|
|
37
|
+
|
|
38
|
+
*Shozo Hatta*
|
|
39
|
+
|
|
40
|
+
* Attempt to fix Ferrum timeout errors by creating driver with unique name.
|
|
41
|
+
|
|
42
|
+
*Cameron Dutro*
|
|
43
|
+
|
|
13
44
|
## 3.6.0
|
|
14
45
|
|
|
15
46
|
* Refer to `helpers` in `NameError` message in development and test environments.
|
data/lib/view_component/base.rb
CHANGED
|
@@ -553,6 +553,7 @@ module ViewComponent
|
|
|
553
553
|
# @param parameter [Symbol] The parameter name used when rendering elements of a collection.
|
|
554
554
|
def with_collection_parameter(parameter)
|
|
555
555
|
@provided_collection_parameter = parameter
|
|
556
|
+
@initialize_parameters = nil
|
|
556
557
|
end
|
|
557
558
|
|
|
558
559
|
# Strips trailing whitespace from templates before compiling them.
|
|
@@ -648,7 +649,7 @@ module ViewComponent
|
|
|
648
649
|
end
|
|
649
650
|
|
|
650
651
|
def initialize_parameters
|
|
651
|
-
instance_method(:initialize).parameters
|
|
652
|
+
@initialize_parameters ||= instance_method(:initialize).parameters
|
|
652
653
|
end
|
|
653
654
|
|
|
654
655
|
def provided_collection_parameter
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: view_component
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ViewComponent Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|