view_component 2.31.0 → 2.31.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/view_component/compiler.rb +6 -6
- 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: f29c10730d8ec00ec04c0a7236b5f0eefb56235012c866b9af8566f2b4d25a1b
|
4
|
+
data.tar.gz: e1ebe3cab15bb375740e012474aef4d31a4d44dbf5cfc302ad2248567b704009
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 479fc618baf4e945087b0738d0dcf0c621060a8f81f0916149c9f93be0cd7dc2f715fd1f5e45c2ecf365ed5db44bfa4c1e34c406bdfab443556f08c1aaabf2cb
|
7
|
+
data.tar.gz: '099ee8077b1d6c866710dc16abe53c9e9159c2966f9505bdf1492a370f411a4f242191feba37d0fb9e74d158b3f87b41e1cb2f812fb0da012ae7a93caccf4818'
|
data/CHANGELOG.md
CHANGED
@@ -15,12 +15,6 @@ module ViewComponent
|
|
15
15
|
|
16
16
|
subclass_instance_methods = component_class.instance_methods(false)
|
17
17
|
|
18
|
-
if subclass_instance_methods.include?(:before_render_check)
|
19
|
-
ActiveSupport::Deprecation.warn(
|
20
|
-
"`before_render_check` will be removed in v3.0.0. Use `before_render` instead."
|
21
|
-
)
|
22
|
-
end
|
23
|
-
|
24
18
|
if subclass_instance_methods.include?(:with_content) && raise_errors
|
25
19
|
raise ViewComponent::ComponentError.new("#{component_class} implements a reserved method, `with_content`.")
|
26
20
|
end
|
@@ -30,6 +24,12 @@ module ViewComponent
|
|
30
24
|
return false
|
31
25
|
end
|
32
26
|
|
27
|
+
if subclass_instance_methods.include?(:before_render_check)
|
28
|
+
ActiveSupport::Deprecation.warn(
|
29
|
+
"`before_render_check` will be removed in v3.0.0. Use `before_render` instead."
|
30
|
+
)
|
31
|
+
end
|
32
|
+
|
33
33
|
if raise_errors
|
34
34
|
component_class.validate_initialization_parameters!
|
35
35
|
component_class.validate_collection_parameter!
|
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.31.
|
4
|
+
version: 2.31.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: 2021-04-
|
11
|
+
date: 2021-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|