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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f9cd8a02bdb075f27e1c00cd93bd14d571f97ca61ebef0de07562ddf7d5a970
4
- data.tar.gz: 6c7598c93d0a6c9e89e50eba9609b2d2fb61e3ae720e27f04996f4b709d02e09
3
+ metadata.gz: 598253ec8df444a3d539ba263176f314a28da389ad085a3a36ce859cf97d684b
4
+ data.tar.gz: 9fd2198fb261f3a7212899a97c68c40aca130bc543865e7d05f3463a6351b5f5
5
5
  SHA512:
6
- metadata.gz: a75d639e1ba0e5233dcee3e94d816b41bf031feebe4cd0ae0a5e4977d64f20ab0e8a38eec9dda562d4f78733bdaffefa2fdc66220ddb93814931f276a57628ac
7
- data.tar.gz: 799beb99492f81d0c1dec1a497deaa49c1b1845c2fb96f3cf2cfa948229a795ea34ab163989003388f27f3bb734a76db73a73e0e176008da5e422b2b4583b7ff
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?("date")
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?("to_datetime") && b.respond_to?("to_datetime")
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.alpha11
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: 2021-11-29 00:00:00.000000000 Z
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.alpha11
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.alpha11
26
+ version: 1.0.0.beta1
27
27
  description:
28
28
  email: maintainers@bridgetownrb.com
29
29
  executables: []