view_component 2.56.1 → 2.56.2

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: 338f95cb25ce1684e1be8486d44f84130f7a2a1b96f01d3a99b9909cb64ff650
4
- data.tar.gz: ac955c1551852c4ef4f5c884bacca4513f10b08b59e6a6b9aa635cfc20a7481c
3
+ metadata.gz: afe785add49fc05a089c0d317b73ab372489e85473fced3b8b4ae13d11271e78
4
+ data.tar.gz: e52674e539ea4ee9bb147ac8394575d9b45f7096ed3f92503b47da7c63ba3b47
5
5
  SHA512:
6
- metadata.gz: efc8cebe7198a787d2534bf1d5ddadbea1d90940495df41cd1c13fe8f2f8ec2f4f065c6a7ee874e4e0c84cb823a02bdbcc3b912c29f00580b04b7475c1384755
7
- data.tar.gz: 0c4f543ec0047ce0cbd7fbbeafd38ddc973051e6e010e19b36a3040a89ebdd96a3dc108c48b7aeb2ce95416908bbefad0387fe965f7400940ea07284f177c5eb
6
+ metadata.gz: 0d6b9fc86ac35aa9cc1831d2b3eb4b1bf8f7197658342edfc6201ccf62e9f01abdca2a31226dd9a9b5d039a0af3d8b997ff38c7626e2da33841f0fc573254fc4
7
+ data.tar.gz: 1efe944077b322fe594d7ef3b6a21ee7fa887efd4c237546c877de54b85be5b7bc5ba01a4e75b1d5518f645302ae6360c4c8aa1e2d519fa04b27bd80f622921c
data/docs/CHANGELOG.md CHANGED
@@ -9,6 +9,12 @@ title: Changelog
9
9
 
10
10
  ## main
11
11
 
12
+ ## 2.56.2
13
+
14
+ * Restore removed `rendered_component`, marking it for deprecation in v3.0.0.
15
+
16
+ *Tyson Gach*, *Richard Macklin*, *Joel Hawksley*
17
+
12
18
  ## 2.56.1
13
19
 
14
20
  * Rename private accessor `rendered_component` to `rendered_content`.
@@ -32,6 +32,15 @@ module ViewComponent
32
32
  # @private
33
33
  attr_reader :rendered_content
34
34
 
35
+ def rendered_component
36
+ ViewComponent::Deprecation.warn(
37
+ "`rendered_component` is deprecated and will be removed in v3.0.0. " \
38
+ "Use `page` instead."
39
+ )
40
+
41
+ rendered_content
42
+ end
43
+
35
44
  # Render a component inline. Internally sets `page` to be a `Capybara::Node::Simple`,
36
45
  # allowing for Capybara assertions to be used:
37
46
  #
@@ -4,7 +4,7 @@ module ViewComponent
4
4
  module VERSION
5
5
  MAJOR = 2
6
6
  MINOR = 56
7
- PATCH = 1
7
+ PATCH = 2
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH].join(".")
10
10
  end
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: 2.56.1
4
+ version: 2.56.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-01 00:00:00.000000000 Z
11
+ date: 2022-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport