view_component 2.72.0 → 2.73.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 +4 -4
- data/docs/CHANGELOG.md +26 -0
- data/lib/view_component/base.rb +0 -9
- data/lib/view_component/compiler.rb +0 -1
- data/lib/view_component/engine.rb +1 -2
- 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: e93199b5338cffab62abb54fd5f76275c2b3ddd3c1b12ef60e14ea599732f247
|
|
4
|
+
data.tar.gz: 432ae80f950b2248d10e3ee9743ddb786f8bfc037c84e802b5fdcab019d615ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eeec5590ac13fdc2153669d34590d132e81e98083940f41fcc371379efdccb50cca11c103cf274e61f00fd1dbf98501bda36e0d9ecda08ac6462256e644cc18b
|
|
7
|
+
data.tar.gz: 7c222a29ebbff9e85adb164302f0083499de254a09b0af507ee37d201324bcc5bd46d5a9054eb73809a5b81b8d2edb1ab198399f78c749f5bee59257a19a1e6a
|
data/docs/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,32 @@ nav_order: 5
|
|
|
10
10
|
|
|
11
11
|
## main
|
|
12
12
|
|
|
13
|
+
## 2.73.0
|
|
14
|
+
|
|
15
|
+
* Remove experimental `_after_compile` lifecycle method.
|
|
16
|
+
|
|
17
|
+
*Joel Hawksley*
|
|
18
|
+
|
|
19
|
+
* Fix capitalization of JavaScript in docs.
|
|
20
|
+
|
|
21
|
+
*Erinna Chen*
|
|
22
|
+
|
|
23
|
+
* Add PrintReleaf to list of companies using ViewComponent.
|
|
24
|
+
|
|
25
|
+
*Ry Kulp*
|
|
26
|
+
|
|
27
|
+
* Simplify CI configuration to a single build per Ruby/Rails version.
|
|
28
|
+
|
|
29
|
+
*Joel Hawksley*
|
|
30
|
+
|
|
31
|
+
* Correctly document `generate.sidecar` config option.
|
|
32
|
+
|
|
33
|
+
*Ruben Smit*
|
|
34
|
+
|
|
35
|
+
* Add Yobbers to list of companies using ViewComponent.
|
|
36
|
+
|
|
37
|
+
*Anton Prins*
|
|
38
|
+
|
|
13
39
|
## 2.72.0
|
|
14
40
|
|
|
15
41
|
* Deprecate support for Ruby < 2.7 for removal in v3.0.0.
|
data/lib/view_component/base.rb
CHANGED
|
@@ -59,15 +59,6 @@ module ViewComponent
|
|
|
59
59
|
self.__vc_original_view_context = view_context
|
|
60
60
|
end
|
|
61
61
|
|
|
62
|
-
# EXPERIMENTAL: This API is experimental and may be removed at any time.
|
|
63
|
-
# Hook for allowing components to do work as part of the compilation process.
|
|
64
|
-
#
|
|
65
|
-
# For example, one might compile component-specific assets at this point.
|
|
66
|
-
# @private TODO: add documentation
|
|
67
|
-
def self._after_compile
|
|
68
|
-
# noop
|
|
69
|
-
end
|
|
70
|
-
|
|
71
62
|
# @!macro [attach] deprecated_generate_mattr_accessor
|
|
72
63
|
# @method generate_$1
|
|
73
64
|
# @deprecated Use `#generate.$1` instead. Will be removed in v3.0.0.
|
|
@@ -19,8 +19,7 @@ module ViewComponent
|
|
|
19
19
|
end
|
|
20
20
|
options.instrumentation_enabled = false if options.instrumentation_enabled.nil?
|
|
21
21
|
options.render_monkey_patch_enabled = true if options.render_monkey_patch_enabled.nil?
|
|
22
|
-
options.show_previews = Rails.env.development? || Rails.env.test?
|
|
23
|
-
options.instrumentation_enabled = false if options.instrumentation_enabled.nil?
|
|
22
|
+
options.show_previews = Rails.env.development? || Rails.env.test?
|
|
24
23
|
|
|
25
24
|
if options.show_previews
|
|
26
25
|
# This is still necessary because when `config.view_component` is declared, `Rails.root` is unspecified.
|
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.73.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ViewComponent Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-09-
|
|
11
|
+
date: 2022-09-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|