bridgetown-builder 0.19.1 → 0.21.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b47dc8b1217ec3534ca2a38977c687da07a54c0e09cb6c778a4b4b9f21c10a2e
4
- data.tar.gz: 6deea77ae69bdf37a057fc034766f938c936532ba30208b6b4720c498669cdfa
3
+ metadata.gz: 62b7ad3d990fd71a7a2c1411b951be52e14e56cfd345aef3de0ed2cd1c55cbe3
4
+ data.tar.gz: 4ad640683d8ae2bda9fe95cc31390d9d940960b14cf0b19ad0bbc2ef6fb32adf
5
5
  SHA512:
6
- metadata.gz: d244e5bdb6e4eaceb8487e9466f5b65aae7657182cba053b049de8617e068550985d6a44f52fd0b4c686e530ce949c6e485d8e7f091e6aee09599a17d6ada6c9
7
- data.tar.gz: b139487be4fbef9fffa0381419d195b65cd1da958ce66da71b2d70c510ec272de54332b94a2c258df63ded31e16d8eda833c9d495ac1bfaf585d18416888f0d3
6
+ metadata.gz: 51116697c80ac9892f89e2a7be0f8422d42dcc78f232d59b38ba5a632cec0225e50c35021087a7326c8a2f4d1ba39f7e2b570753efc998e58bf1db57a9c17819
7
+ data.tar.gz: de25e3baf0c2f9b7fc6ca8a133e0f431c04533719d97ade0f39fb3513cc997241d8ed6eeab12387d01b30793ab4dfcb32cf9fab7f79ba9bc4dfa6421181f1b7f
@@ -3,6 +3,8 @@
3
3
  module Bridgetown
4
4
  # Superclass for a website's SiteBuilder abstract class
5
5
  class Builder < Bridgetown::Builders::PluginBuilder
6
+ extend ActiveSupport::DescendantsTracker
7
+
6
8
  class << self
7
9
  def register
8
10
  Bridgetown::Hooks.register_one :site, :pre_read, reloadable: false do |site|
@@ -21,25 +23,8 @@ module Bridgetown
21
23
  name
22
24
  end
23
25
 
24
- def self.inherited(const)
25
- (@children ||= Set.new).add const
26
- catch_inheritance(const) do |const_|
27
- catch_inheritance(const_)
28
- end
29
- end
30
-
31
- def self.catch_inheritance(const)
32
- const.define_singleton_method :inherited do |const_|
33
- (@children ||= Set.new).add const_
34
- yield const_ if block_given?
35
- end
36
- end
37
-
38
26
  def self.descendants
39
- @children ||= Set.new
40
- out = @children.map(&:descendants)
41
- out << self unless ["SiteBuilder", "Bridgetown::Builder"].include?(name)
42
- Set.new(out).flatten
27
+ super.reject { |klass| ["SiteBuilder"].include?(klass.name) }
43
28
  end
44
29
  end
45
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.1
4
+ version: 0.21.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-26 00:00:00.000000000 Z
11
+ date: 2021-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bridgetown-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.21.0.beta2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.19.1
26
+ version: 0.21.0.beta2
27
27
  description:
28
28
  email: maintainers@bridgetownrb.com
29
29
  executables: []
@@ -58,9 +58,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
58
  version: '0'
59
59
  required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ">="
61
+ - - ">"
62
62
  - !ruby/object:Gem::Version
63
- version: '0'
63
+ version: 1.3.1
64
64
  requirements: []
65
65
  rubygems_version: 3.1.4
66
66
  signing_key: