bridgetown-core 0.21.4 → 0.21.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bridgetown-core/plugin_manager.rb +8 -6
- data/lib/bridgetown-core/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: f9369cb49650eed5ad6776258f190b8afd8afa714d6dfaa77b2c6c1c15537346
|
4
|
+
data.tar.gz: f8625881a5386a7520e4e22981254352d0040d28052e2f85c64f072884da6f05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8d19b3e0926ed332e4030ddf4c039292d14f490b509708dd51f81b0cd4b177b22a819920d35a3e4f0a4924204893f36fdc00c388ef9bed28dbf672af590dc96
|
7
|
+
data.tar.gz: 25dc48e4587613c547cd12cb762c7a968efedda1905d3fca1814deeab3af2f70ebdb755c6572793e8db817cbef8e16a8d741e517ae1eb7c978da05d353492d39
|
@@ -173,13 +173,15 @@ module Bridgetown
|
|
173
173
|
# source components _before_ we load any from plugins
|
174
174
|
site.components_load_paths.reverse_each do |load_path|
|
175
175
|
next unless Dir.exist? load_path
|
176
|
-
next if Zeitwerk::Registry.loaders.find { |loader| loader.manages?(load_path) }
|
177
176
|
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
177
|
+
begin
|
178
|
+
@component_loaders[load_path] = Zeitwerk::Loader.new
|
179
|
+
@component_loaders[load_path].push_dir(load_path)
|
180
|
+
@component_loaders[load_path].enable_reloading if load_path.start_with?(site.root_dir)
|
181
|
+
@component_loaders[load_path].ignore(File.join(load_path, "**", "*.js.rb"))
|
182
|
+
@component_loaders[load_path].setup
|
183
|
+
rescue Zeitwerk::Error # rubocop:disable Lint/SuppressedException
|
184
|
+
end
|
183
185
|
end
|
184
186
|
end
|
185
187
|
# rubocop:enable Metrics/AbcSize
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridgetown-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.21.
|
4
|
+
version: 0.21.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|