view_component 2.38.0 → 2.39.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 +4 -4
- data/docs/CHANGELOG.md +18 -0
- data/lib/view_component/base.rb +5 -0
- data/lib/view_component/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5f28b38a232a62dbe80033fe0ac5a7b0ee717f933afc76a1e991396ff51a8d6
|
4
|
+
data.tar.gz: ed6610e4fc417a876aeac464439cc627c5ce6e242a65faa0d7db001e2249035a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7e130233a0699c54a1a9664c9a893afc6df8e45795d397ce6592e2edbd719c61ed6ef9fb373b3dc8d8285bc3a2d712c013579303138fb466806e646c2480465
|
7
|
+
data.tar.gz: 25001a6bff37068aceccfb029d5829cd759f4662f7f0b8eb4ab76a42bf0a31ba55f1ceb97480c4a285dc3e9d9da62e746194f623f6b443c647fdb17bb21b3963
|
data/docs/CHANGELOG.md
CHANGED
@@ -7,6 +7,24 @@ title: Changelog
|
|
7
7
|
|
8
8
|
## main
|
9
9
|
|
10
|
+
## 2.39.0
|
11
|
+
|
12
|
+
* Clarify documentation of `with_variant` as an override of Action Pack.
|
13
|
+
|
14
|
+
*Blake Williams*, *Cameron Dutro*, *Joel Hawksley*
|
15
|
+
|
16
|
+
* Update docs page to be called Javascript and CSS, rename Building ViewComponents to Guide.
|
17
|
+
|
18
|
+
*Joel Hawksley*
|
19
|
+
|
20
|
+
* Deprecate `Base#with_variant`.
|
21
|
+
|
22
|
+
*Cameron Dutro*
|
23
|
+
|
24
|
+
* Error out in the CI if docs/api.md has to be regenerated.
|
25
|
+
|
26
|
+
*Dany Marcoux*
|
27
|
+
|
10
28
|
## 2.38.0
|
11
29
|
|
12
30
|
* Add `--stimulus` flag to the component generator. Generates a Stimulus controller alongside the component.
|
data/lib/view_component/base.rb
CHANGED
@@ -218,9 +218,14 @@ module ViewComponent
|
|
218
218
|
|
219
219
|
# Use the provided variant instead of the one determined by the current request.
|
220
220
|
#
|
221
|
+
# @deprecated Will be removed in v3.0.0.
|
221
222
|
# @param variant [Symbol] The variant to be used by the component.
|
222
223
|
# @return [self]
|
223
224
|
def with_variant(variant)
|
225
|
+
ActiveSupport::Deprecation.warn(
|
226
|
+
"`with_variant` is deprecated and will be removed in ViewComponent v3.0.0."
|
227
|
+
)
|
228
|
+
|
224
229
|
@__vc_variant = variant
|
225
230
|
|
226
231
|
self
|
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.
|
4
|
+
version: 2.39.0
|
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: 2021-08-
|
11
|
+
date: 2021-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -340,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
340
340
|
- !ruby/object:Gem::Version
|
341
341
|
version: '0'
|
342
342
|
requirements: []
|
343
|
-
rubygems_version: 3.
|
343
|
+
rubygems_version: 3.1.4
|
344
344
|
signing_key:
|
345
345
|
specification_version: 4
|
346
346
|
summary: View components for Rails
|