view_component 2.54.0 → 2.54.1
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 +11 -0
- data/lib/view_component/base.rb +1 -1
- data/lib/view_component/slotable_v2.rb +0 -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: f9cab3c05c054f173b248b903912dfb432eeec09b2d3d42f6fd602a7565acd2d
|
|
4
|
+
data.tar.gz: 78b70e8ea1306fb635978dbe2a86cece2618247bb0079798e5a886f2210dfed1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 653d1c627f3fb52677e47516472fec508c562359e3beac3defa43d172d3e793359207df638f352f1c1cc6a876a0f3c3fdc4c7ff4eefdc1907c20a161e9359d83
|
|
7
|
+
data.tar.gz: 25bc7a21cde84c3311d9482cdb2ccccf821ce2c104492506a999e81f8cd9d9a5b3b3c19f3b417dc3f250787adf18fbe9f9d9ff5589e897fc199e26e50e4b0efa
|
data/docs/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,17 @@ title: Changelog
|
|
|
9
9
|
|
|
10
10
|
## main
|
|
11
11
|
|
|
12
|
+
## 2.54.1
|
|
13
|
+
|
|
14
|
+
* Update docs dependencies.
|
|
15
|
+
|
|
16
|
+
*Joel Hawksley*
|
|
17
|
+
|
|
18
|
+
* Resolve warning in slots API.
|
|
19
|
+
* Raise in the test environment when ViewComponent code emits a warning.
|
|
20
|
+
|
|
21
|
+
*Blake Williams*
|
|
22
|
+
|
|
12
23
|
## 2.54.0
|
|
13
24
|
|
|
14
25
|
* Add `with_*` slot API for defining slots. Note: we plan to deprecate the non `with_*` API for slots in an upcoming release.
|
data/lib/view_component/base.rb
CHANGED
|
@@ -70,7 +70,7 @@ module ViewComponent
|
|
|
70
70
|
@view_context = view_context
|
|
71
71
|
self.__vc_original_view_context ||= view_context
|
|
72
72
|
|
|
73
|
-
@output_buffer = ActionView::OutputBuffer.new unless @global_buffer_in_use
|
|
73
|
+
@output_buffer = ActionView::OutputBuffer.new unless defined?(@global_buffer_in_use) && @global_buffer_in_use
|
|
74
74
|
|
|
75
75
|
@lookup_context ||= view_context.lookup_context
|
|
76
76
|
|
|
@@ -155,7 +155,6 @@ module ViewComponent
|
|
|
155
155
|
set_slot(slot_name, nil, **args, &block)
|
|
156
156
|
end
|
|
157
157
|
end
|
|
158
|
-
ruby2_keywords(:"with_#{slot_name}") if respond_to?(:ruby2_keywords, true)
|
|
159
158
|
|
|
160
159
|
# Instantiates and and adds multiple slots forwarding the first
|
|
161
160
|
# argument to each slot constructor
|
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.54.
|
|
4
|
+
version: 2.54.1
|
|
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-05-
|
|
11
|
+
date: 2022-05-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|