bridgetown-paginate 1.0.0.alpha11 → 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bridgetown-paginate/pagination_model.rb +1 -1
- data/lib/bridgetown-paginate/utils.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 598253ec8df444a3d539ba263176f314a28da389ad085a3a36ce859cf97d684b
|
4
|
+
data.tar.gz: 9fd2198fb261f3a7212899a97c68c40aca130bc543865e7d05f3463a6351b5f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2111a8417f2a5f1f13803986f5fe29527dd9496626b35a0371d91503665bd74ab05bcf24e0edaa1426ad02351abcdd1f01b39ac946764612316b220c62ccb0c
|
7
|
+
data.tar.gz: 3ac2e512502227f3a4e4d777a4981bc4182229f1b4e61d72124ea2c5bb587263326f04428f74ead715fda783b7125468d7cc504f98ececa1c3a2ada6657f6c05
|
@@ -269,7 +269,7 @@ module Bridgetown
|
|
269
269
|
puts "#{"Pagination: ".rjust(20)}Rolling through the date fields for all documents"
|
270
270
|
end
|
271
271
|
using_posts.each do |u_post|
|
272
|
-
next unless u_post.respond_to?(
|
272
|
+
next unless u_post.respond_to?(:date)
|
273
273
|
|
274
274
|
tmp_date = u_post.date
|
275
275
|
next unless !tmp_date || tmp_date.nil?
|
@@ -80,7 +80,7 @@ module Bridgetown
|
|
80
80
|
return 1 if !a.nil? && b.nil?
|
81
81
|
return a.downcase <=> b.downcase if a.is_a?(String)
|
82
82
|
|
83
|
-
if a.respond_to?(
|
83
|
+
if a.respond_to?(:to_datetime) && b.respond_to?(:to_datetime)
|
84
84
|
return a.to_datetime <=> b.to_datetime
|
85
85
|
end
|
86
86
|
|
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.
|
4
|
+
version: 1.0.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-13 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.
|
19
|
+
version: 1.0.0.beta1
|
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.
|
26
|
+
version: 1.0.0.beta1
|
27
27
|
description:
|
28
28
|
email: maintainers@bridgetownrb.com
|
29
29
|
executables: []
|