pagy 3.7.1 → 3.7.2
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/config/pagy.rb +1 -1
- data/lib/javascripts/pagy.js +1 -1
- data/lib/pagy.rb +1 -1
- data/lib/pagy/extras/headers.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 76652fd4a632f5c9214e1edd7ab0c1068a3d7d68cfab8ebf2bc32e72149fe90c
|
|
4
|
+
data.tar.gz: c644235b4a3157e17e60b26f41505bc84d2c6c952d01f4fbb922f20c3a8d63bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9dcf374789272f45d6b19c1179c02285de9ea3adfe9cd8fa3cc0449113060a91eb56e6609c71384756f49e078f3127e5e2b1f7bc964de54eecafe2308c470844
|
|
7
|
+
data.tar.gz: b5591387bfcc00721540e81f3cecd4f4e4e8a699f29329e29a3a8099d398d4439b8e8e6331dc6a4202d8734d1a7eb5dd74630413547cbd04b4d7faac4ea3068b
|
data/lib/config/pagy.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
-
# Pagy initializer file (3.7.
|
|
4
|
+
# Pagy initializer file (3.7.2)
|
|
5
5
|
# Customize only what you really need and notice that Pagy works also without any of the following lines.
|
|
6
6
|
# Should you just cherry pick part of this file, please maintain the require-order of the extras
|
|
7
7
|
|
data/lib/javascripts/pagy.js
CHANGED
data/lib/pagy.rb
CHANGED
data/lib/pagy/extras/headers.rb
CHANGED
|
@@ -26,11 +26,11 @@ class Pagy
|
|
|
26
26
|
url_str = pagy_url_for(PAGE_PLACEHOLDER, pagy, :url)
|
|
27
27
|
hash = { 'Link' => Hash[rels.map{|rel, n|[rel, url_str.sub(PAGE_PLACEHOLDER, n.to_s)] if n}.compact] }
|
|
28
28
|
headers = pagy.vars[:headers]
|
|
29
|
-
hash[headers[:page]] = pagy.page if headers[:page]
|
|
30
|
-
hash[headers[:items]] = pagy.vars[:items] if headers[:items]
|
|
29
|
+
hash[headers[:page]] = pagy.page.to_s if headers[:page]
|
|
30
|
+
hash[headers[:items]] = pagy.vars[:items].to_s if headers[:items]
|
|
31
31
|
unless countless
|
|
32
|
-
hash[headers[:pages]] = pagy.pages if headers[:pages]
|
|
33
|
-
hash[headers[:count]] = pagy.count if headers[:count]
|
|
32
|
+
hash[headers[:pages]] = pagy.pages.to_s if headers[:pages]
|
|
33
|
+
hash[headers[:count]] = pagy.count.to_s if headers[:count]
|
|
34
34
|
end
|
|
35
35
|
hash
|
|
36
36
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pagy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.7.
|
|
4
|
+
version: 3.7.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Domizio Demichelis
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-01-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: 'Agnostic pagination in plain ruby: it works with any framework, ORM
|
|
14
14
|
and DB type, with all kinds of collections, even pre-paginated, scopes, Arrays,
|