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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 37bb719bf3f89d9d71ce7879e12a55ccafb0b1705565d4256a0f825b68a24db2
4
- data.tar.gz: 5a379783bcf6f170e151fd48f1524e942710b3dfbc5cf40e790812476f303ae0
3
+ metadata.gz: f29c10730d8ec00ec04c0a7236b5f0eefb56235012c866b9af8566f2b4d25a1b
4
+ data.tar.gz: e1ebe3cab15bb375740e012474aef4d31a4d44dbf5cfc302ad2248567b704009
5
5
  SHA512:
6
- metadata.gz: d0c18928b2cb3e6ae1e9a360eaeb05d278fee96c745bc4b17a0f498787862fb5619bf14165c37489d7d96bd064683fcd614166da3ee0c274453db0b47c270db8
7
- data.tar.gz: 5381cd03176cfa7b9df47a86d801d7177c292c0f4460c8df70378e97052993f2bf17c9f96f140290d22d44a3a56794f4e9d9ac1378cb8c9666509d3f2fddac62
6
+ metadata.gz: 479fc618baf4e945087b0738d0dcf0c621060a8f81f0916149c9f93be0cd7dc2f715fd1f5e45c2ecf365ed5db44bfa4c1e34c406bdfab443556f08c1aaabf2cb
7
+ data.tar.gz: '099ee8077b1d6c866710dc16abe53c9e9159c2966f9505bdf1492a370f411a4f242191feba37d0fb9e74d158b3f87b41e1cb2f812fb0da012ae7a93caccf4818'
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## main
4
4
 
5
+ ## 2.31.1
6
+
7
+ * Fix `DEPRECATION WARNING: before_render_check` when compiling `ViewComponent::Base`
8
+
9
+ *Dave Kroondyk*
10
+
5
11
  ## 2.31.0
6
12
 
7
13
  * Add `#with_content` to allow setting content without a block.
@@ -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!
@@ -4,7 +4,7 @@ module ViewComponent
4
4
  module VERSION
5
5
  MAJOR = 2
6
6
  MINOR = 31
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.31.0
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-26 00:00:00.000000000 Z
11
+ date: 2021-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport