view_component 3.6.0 → 3.7.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of view_component might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e24f482306b48f037310ce13c9fd25a35ad809a1b3cc536f5b496cf4f4e17ebc
4
- data.tar.gz: b403755a43c062e591b2b6cce09422a7148a22d263ff15ca0f2395086df965b2
3
+ metadata.gz: 47e62a0d72c8f9b594303a04d917565ea3766f30ee1335154643e311f92b6128
4
+ data.tar.gz: 412377cfaf624ddfb930d52dcf07a469666f57024d35712f71f752f454f507a5
5
5
  SHA512:
6
- metadata.gz: 8cac599cdbad5dfaf4bdf9e02cc3ca34bf45be4fd8832745fe00bd3487127f360e144cc746f5a975a55f1beded97193a3d5abaa42ce161c8d88535e4547fb21b
7
- data.tar.gz: d7e4d742329eec00ac562e5cd02ca7a1cd206af87dd4544649ab8790697511fb400a2175d70c6fff39fbed9124810a97db8e4e4d92ec8f6a7735247042140417
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.
@@ -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
@@ -3,7 +3,7 @@
3
3
  module ViewComponent
4
4
  module VERSION
5
5
  MAJOR = 3
6
- MINOR = 6
6
+ MINOR = 7
7
7
  PATCH = 0
8
8
  PRE = nil
9
9
 
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.6.0
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-09-14 00:00:00.000000000 Z
11
+ date: 2023-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport