view_component 2.54.0 → 2.54.1

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: b4b1f5b50f3ff33ba025588ac11f83362684484dae4aafea6b3be2a866944b3c
4
- data.tar.gz: bdc4bf615413d7b3ab8e936c6df0ffd12b8915e03f44c5a8f6ad6989eb5fb5b5
3
+ metadata.gz: f9cab3c05c054f173b248b903912dfb432eeec09b2d3d42f6fd602a7565acd2d
4
+ data.tar.gz: 78b70e8ea1306fb635978dbe2a86cece2618247bb0079798e5a886f2210dfed1
5
5
  SHA512:
6
- metadata.gz: 98ce9d4ac6888dd6b6fed5987f2a6a95b6589c12930886bb35ec1009cdf385f507d3b199e63d27bd93f2125294cc5b8f7e085de27fd67ed6e45c613534bc41cb
7
- data.tar.gz: '058bdd0c93a6af548eb77feaafb432fe5a6fa9ded2730b4576b7e87c713a403c81e6db5340aa70a78444b4ce8b9b95f729294391e98ff946ecc50f4c86837d48'
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.
@@ -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
@@ -4,7 +4,7 @@ module ViewComponent
4
4
  module VERSION
5
5
  MAJOR = 2
6
6
  MINOR = 54
7
- PATCH = 0
7
+ PATCH = 1
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.54.0
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-10 00:00:00.000000000 Z
11
+ date: 2022-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport