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 +4 -4
- data/docs/CHANGELOG.md +6 -0
- data/lib/view_component/test_helpers.rb +9 -0
- 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: afe785add49fc05a089c0d317b73ab372489e85473fced3b8b4ae13d11271e78
|
4
|
+
data.tar.gz: e52674e539ea4ee9bb147ac8394575d9b45f7096ed3f92503b47da7c63ba3b47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
#
|
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.
|
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-
|
11
|
+
date: 2022-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|