view_component 2.20.0 → 2.21.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.

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: '09c638fb23b5832cf8ce411d1a07b50d2d56087858d8186ee2d4248c7e0576de'
4
- data.tar.gz: b7ea4f439d382228a7c6911b2c0b959be52c7443cd4885a9d91159b55764d8b7
3
+ metadata.gz: 10b07228ef11bf3be414fd322ed536a555c69c5ce57798f19943c7723adaa706
4
+ data.tar.gz: cb5a0eb00071d4e7113882b6d4e910271bbef47d30091ab5ba72f61a5e11211a
5
5
  SHA512:
6
- metadata.gz: 43d6768b641f4fcb4f7a86488312400f6cb1922722f5654a98bebda771dbdc1a544e84d64b719880c822fec94621f1d402f6eaa805a21d383cab227b630b6503
7
- data.tar.gz: 152a9f7ad4a6de0fa37df958d8a1877822bdf96f97ef81cbeebd9afb6224155e37725eb71338dd908061c0f0799e0cbf5dcf7c0c39d805ad5c471335649f4b97
6
+ metadata.gz: 8cfcf9f97c0ca17f061c13f1abc7bb7fb67746b7aff1def956f92b7db5154aa4681fe827b033e0f8b5a8cd7a88740ed3addaad9eedbb059936b0bf71a2654c8c
7
+ data.tar.gz: 834e52c7199a61ac601783f85694c3c990b972eae9af011331c6c5d94532e267589adf51b910978a1fc7ede0d7d77451d05864e2e7eef39b83d82e5430417b72
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 2.21.0
6
+
7
+ * Only compile components at application initialization if eager loading is enabled.
8
+
9
+ *Joel Hawksley*
10
+
5
11
  ## 2.20.0
6
12
 
7
13
  * Don't add `/test/components/previews` to preview_paths if directory doesn't exist.
@@ -44,7 +44,7 @@ module ViewComponent
44
44
 
45
45
  initializer "view_component.eager_load_actions" do
46
46
  ActiveSupport.on_load(:after_initialize) do
47
- ViewComponent::Base.descendants.each(&:compile)
47
+ ViewComponent::Base.descendants.each(&:compile) if Rails.application.config.eager_load
48
48
  end
49
49
  end
50
50
 
@@ -3,7 +3,7 @@
3
3
  module ViewComponent
4
4
  module VERSION
5
5
  MAJOR = 2
6
- MINOR = 20
6
+ MINOR = 21
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.20.0
4
+ version: 2.21.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: 2020-10-19 00:00:00.000000000 Z
11
+ date: 2020-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport