bridgetown-paginate 2.0.4 → 2.1.0.beta1
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/lib/bridgetown-paginate/pagination_model.rb +1 -1
- data/lib/bridgetown-paginate/utils.rb +1 -4
- metadata +5 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7c98f71ac28a14ef587859ba23a5016bf93ba11868d9ae2cc3d7709290f59700
|
|
4
|
+
data.tar.gz: '09209d93d350b0bc4b7d00b1a915fb5a1142dc738da6730bc09bd3929a57a9aa'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0784665caab2ec6881a51624572a441465102eac56aa3deac3f8d9bb74568e7b4a0c1560b3e1225e71c1d120096bff7953201046075e00e5108d16f63078c85
|
|
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.
|
|
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.
|
|
4
|
+
version: 2.1.0.beta1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bridgetown Team
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
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.
|
|
18
|
+
version: 2.1.0.beta1
|
|
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.
|
|
27
|
-
description:
|
|
25
|
+
version: 2.1.0.beta1
|
|
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.
|
|
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: []
|