bridgetown-paginate 2.0.5 → 2.1.0.beta2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95ce28dd72550c2092c8636347f72a0c99e2d267f7cdac05aa093a085d953ebf
4
- data.tar.gz: f3c2ccc1b2314976ee90f272e0765f3bf7a070578d9f2e25d82c45f8cec09b21
3
+ metadata.gz: 88a9f3db63d58d6e74f5a29052135c98f09a44f73b291c65cd07070e73186f1c
4
+ data.tar.gz: '09209d93d350b0bc4b7d00b1a915fb5a1142dc738da6730bc09bd3929a57a9aa'
5
5
  SHA512:
6
- metadata.gz: '089541c2c7bcb9ccfd205b4ed62289437480c5dcc57d33ed24dc881de305958908fee18a190e71fc171f6bc0111e0cde849cf9fbdc2cdfa0c115751de67eabbc'
7
- data.tar.gz: f975053b284b1add27868a6372a7b1a3df02e1d3b70a14d5e051ad12e98e46e9a82428c3a39f43efd08df71f15f29d15baf6f4377ef45df09193d1d1743cb056
6
+ metadata.gz: a7f0c11aeafad5803aa1599dee8c42a96013fe2dfdd90a0f0590e0d5d44c34ffd51f93d3ac4a652ead89cbe77101e10fccea5003830d11ec7bf67f61f54357d1
7
+ data.tar.gz: 126796b601261918215bc4d92da5eef27c3faca881d823be4314532e41c8a2e526d920dc1977befe1948ea047b4c354a3e8585a359ee88423880feef279d0eaf
@@ -125,7 +125,7 @@ module Bridgetown
125
125
  # raw_collection_names can either be a list of collections separated by a
126
126
  # ',' or ' ' or a single string
127
127
  def get_docs_in_collections(raw_collection_names, template)
128
- if raw_collection_names.blank?
128
+ if raw_collection_names.empty?
129
129
  @logging_lambda.call "Missing collection name for paginated page: " \
130
130
  "#{template.relative_path}"
131
131
  return []
@@ -79,10 +79,7 @@ module Bridgetown
79
79
  return -1 if a.nil? && !b.nil?
80
80
  return 1 if !a.nil? && b.nil?
81
81
  return a.downcase <=> b.downcase if a.is_a?(String)
82
-
83
- if a.respond_to?(:to_datetime) && b.respond_to?(:to_datetime)
84
- return a.to_datetime <=> b.to_datetime
85
- end
82
+ return a.to_time <=> b.to_time if a.respond_to?(:to_time) && b.respond_to?(:to_time)
86
83
 
87
84
  # By default use the built in sorting for the data type
88
85
  a <=> b
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown-paginate
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.1.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-11-16 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bridgetown-core
@@ -16,15 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - '='
18
17
  - !ruby/object:Gem::Version
19
- version: 2.0.5
18
+ version: 2.1.0.beta2
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - '='
25
24
  - !ruby/object:Gem::Version
26
- version: 2.0.5
27
- description:
25
+ version: 2.1.0.beta2
28
26
  email: maintainers@bridgetownrb.com
29
27
  executables: []
30
28
  extensions: []
@@ -50,7 +48,6 @@ metadata:
50
48
  bug_tracker_uri: https://github.com/bridgetownrb/bridgetown/issues
51
49
  changelog_uri: https://github.com/bridgetownrb/bridgetown/releases
52
50
  homepage_uri: https://github.com/bridgetownrb/bridgetown/tree/main/bridgetown-paginate
53
- post_install_message:
54
51
  rdoc_options: []
55
52
  require_paths:
56
53
  - lib
@@ -65,8 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
62
  - !ruby/object:Gem::Version
66
63
  version: '0'
67
64
  requirements: []
68
- rubygems_version: 3.3.26
69
- signing_key:
65
+ rubygems_version: 3.7.2
70
66
  specification_version: 4
71
67
  summary: A Bridgetown plugin to add pagination support for posts and collection indices.
72
68
  test_files: []