bridgetown-paginate 1.0.0.alpha10 → 1.0.0.alpha11

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: 2142f44e4875bb8ccc35047eb846039c3c16cd9f5ec7f08da66d70c7e349eb16
4
- data.tar.gz: c20cf3e7c07e5dbf8981441c1e76651901599873c0f4475aef40b1e88f82a1c2
3
+ metadata.gz: 4f9cd8a02bdb075f27e1c00cd93bd14d571f97ca61ebef0de07562ddf7d5a970
4
+ data.tar.gz: 6c7598c93d0a6c9e89e50eba9609b2d2fb61e3ae720e27f04996f4b709d02e09
5
5
  SHA512:
6
- metadata.gz: c5541b5eb94794f0b43549f302aa87ce1cef8342b76989bb795b40ceab32f838dc1dd1bc81607ce63f7cd812d94a0967fdf0072322fc13f99273d804ac72dfce
7
- data.tar.gz: 869f623b5f58c928b6ef24435e6aca26e08dee17fdc788a36a6d78a84de03d9fb207e9db1a539ff9f25dda73fcc238dedaec652eed2913f4ea54881639ac92e7
6
+ metadata.gz: a75d639e1ba0e5233dcee3e94d816b41bf031feebe4cd0ae0a5e4977d64f20ab0e8a38eec9dda562d4f78733bdaffefa2fdc66220ddb93814931f276a57628ac
7
+ data.tar.gz: 799beb99492f81d0c1dec1a497deaa49c1b1845c2fb96f3cf2cfa948229a795ea34ab163989003388f27f3bb734a76db73a73e0e176008da5e422b2b4583b7ff
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Handles Generated Pages
4
- Bridgetown::Hooks.register :generated_pages, :post_init, reloadable: false do |page|
4
+ Bridgetown::Hooks.register_one :generated_pages, :post_init, reloadable: false do |page|
5
5
  if page.class != Bridgetown::Paginate::PaginationPage &&
6
6
  page.site.config.dig("pagination", "enabled")
7
7
  data = page.data.with_dot_access
@@ -13,7 +13,7 @@ Bridgetown::Hooks.register :generated_pages, :post_init, reloadable: false do |p
13
13
  end
14
14
 
15
15
  # Handles Resources
16
- Bridgetown::Hooks.register :resources, :post_read, reloadable: false do |page|
16
+ Bridgetown::Hooks.register_one :resources, :post_read, reloadable: false do |page|
17
17
  if page.site.config.dig("pagination", "enabled") && (
18
18
  (page.data.pagination.present? && page.data.pagination.enabled != false) ||
19
19
  (page.data.paginate.present? && page.data.paginate.enabled != false)
@@ -23,6 +23,6 @@ Bridgetown::Hooks.register :resources, :post_read, reloadable: false do |page|
23
23
  end
24
24
 
25
25
  # Ensure sites clear out templates before rebuild
26
- Bridgetown::Hooks.register :site, :after_reset, reloadable: false do |_site|
26
+ Bridgetown::Hooks.register_one :site, :after_reset, reloadable: false do |_site|
27
27
  Bridgetown::Paginate::PaginationGenerator.matching_templates.clear
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown-paginate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha10
4
+ version: 1.0.0.alpha11
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-16 00:00:00.000000000 Z
11
+ date: 2021-11-29 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: 1.0.0.alpha10
19
+ version: 1.0.0.alpha11
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: 1.0.0.alpha10
26
+ version: 1.0.0.alpha11
27
27
  description:
28
28
  email: maintainers@bridgetownrb.com
29
29
  executables: []