view_component 2.38.0 → 2.39.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f5e17579fef222144f1b4566ee9061514f05879ac9a60fe405d5979624b1ae5
4
- data.tar.gz: 40d115097a28b8340bef59b09f527357e3e2f8837178d268de0f43330be46cd4
3
+ metadata.gz: e5f28b38a232a62dbe80033fe0ac5a7b0ee717f933afc76a1e991396ff51a8d6
4
+ data.tar.gz: ed6610e4fc417a876aeac464439cc627c5ce6e242a65faa0d7db001e2249035a
5
5
  SHA512:
6
- metadata.gz: 407e8525abd5a6ef76f5a0178c837f855494565030cd46a5c076bcaa8b88f3888a3d6771e6d461c36a207481e547f6cf286eccc658b4667d13073f3b1ed8796d
7
- data.tar.gz: 2f850ee69467621b7a3989f7045160efa5d342e520df04ba6f91044a5e48f6b8df58a573b1555aea8da0c3f4bf6a4a407ffecca92c46def9c906104473415d4f
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.
@@ -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
@@ -3,7 +3,7 @@
3
3
  module ViewComponent
4
4
  module VERSION
5
5
  MAJOR = 2
6
- MINOR = 38
6
+ MINOR = 39
7
7
  PATCH = 0
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH].join(".")
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.38.0
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-12 00:00:00.000000000 Z
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.2.22
343
+ rubygems_version: 3.1.4
344
344
  signing_key:
345
345
  specification_version: 4
346
346
  summary: View components for Rails