bridgetown-core 1.0.0.alpha9 → 1.0.0.alpha10
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/.rubocop.yml +4 -0
- data/bridgetown-core.gemspec +1 -0
- data/lib/bridgetown-core/commands/plugins.rb +1 -1
- data/lib/bridgetown-core/converters/erb_templates.rb +1 -1
- data/lib/bridgetown-core/utils/loaders_manager.rb +11 -0
- data/lib/bridgetown-core/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b529c24ff76bbed44607ecbef4d5dd66414bded0cb8d1640cfb6945d1ae7e9c
|
4
|
+
data.tar.gz: 2522b693b676608de3546183310970d7def3e05c6bbdf5561699fc434e4b3f6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a628d623d424930d62deebff57273a72899b6399fc6ce2114410d0b1fa31293d427df9066238646d208c2878d20686a69bce6c80db5e548bee30e1b7c0ed45e3
|
7
|
+
data.tar.gz: 53b3202f0f8858de9ae4ac123750ebe29c873c989f73a1e1a63defd96ebc20c2e7e935c3f88e2c00685fff7e4eec33190b892788331181bf5e2780869b1684dc
|
data/.rubocop.yml
CHANGED
data/bridgetown-core.gemspec
CHANGED
@@ -187,7 +187,7 @@ module Bridgetown
|
|
187
187
|
say_status "Done!", "Have fun writing your new #{name} plugin :)"
|
188
188
|
say_status "Remember:", "Don't forget to rename the SamplePlugin" \
|
189
189
|
" code identifiers and paths to your own" \
|
190
|
-
" indentifer, as well as update your README
|
190
|
+
" indentifer, as well as update your README" \
|
191
191
|
" and CHANGELOG files as necessary."
|
192
192
|
end
|
193
193
|
|
@@ -28,6 +28,16 @@ module Bridgetown
|
|
28
28
|
load_path.start_with?(root_dir) && ENV["BRIDGETOWN_ENV"] != "production"
|
29
29
|
end
|
30
30
|
|
31
|
+
def clear_descendants_for_reload(_cpath, value, _abspath)
|
32
|
+
unless value.is_a?(Class) && value.singleton_class < ActiveSupport::DescendantsTracker
|
33
|
+
return
|
34
|
+
end
|
35
|
+
|
36
|
+
ActiveSupport::DescendantsTracker.class_variable_get(
|
37
|
+
:@@direct_descendants
|
38
|
+
)[value.superclass]&.reject! { _1 == value }
|
39
|
+
end
|
40
|
+
|
31
41
|
def setup_loaders(autoload_paths = []) # rubocop:todo Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/MethodLength, Metrics/PerceivedComplexity
|
32
42
|
(autoload_paths.presence || config.autoload_paths).each do |load_path|
|
33
43
|
if @loaders.key?(load_path)
|
@@ -49,6 +59,7 @@ module Bridgetown
|
|
49
59
|
|
50
60
|
loader.collapse(collapsed_path)
|
51
61
|
end
|
62
|
+
loader.on_unload(&method(:clear_descendants_for_reload)) # rubocop:disable Performance/MethodObjectAsBlock
|
52
63
|
Bridgetown::Hooks.trigger :loader, :pre_setup, loader, load_path
|
53
64
|
loader.setup
|
54
65
|
loader.eager_load if config.eager_load_paths.include?(load_path)
|
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: 1.0.0.
|
4
|
+
version: 1.0.0.alpha10
|
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-
|
11
|
+
date: 2021-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -332,6 +332,20 @@ dependencies:
|
|
332
332
|
- - "~>"
|
333
333
|
- !ruby/object:Gem::Version
|
334
334
|
version: '1.7'
|
335
|
+
- !ruby/object:Gem::Dependency
|
336
|
+
name: zeitwerk
|
337
|
+
requirement: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - "~>"
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: '2.5'
|
342
|
+
type: :runtime
|
343
|
+
prerelease: false
|
344
|
+
version_requirements: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - "~>"
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: '2.5'
|
335
349
|
description: Bridgetown is a Webpack-aware, Ruby-powered static site generator for
|
336
350
|
the modern Jamstack era
|
337
351
|
email: maintainers@bridgetownrb.com
|