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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bca8f924396671f0dfde589a69a4238032e555835255b6ca3250a831bf29ab9a
4
- data.tar.gz: e07da6728acf08ff053807bbc3f9ab2e4617ad4ee0f9046b0208d40575df406f
3
+ metadata.gz: 76652fd4a632f5c9214e1edd7ab0c1068a3d7d68cfab8ebf2bc32e72149fe90c
4
+ data.tar.gz: c644235b4a3157e17e60b26f41505bc84d2c6c952d01f4fbb922f20c3a8d63bc
5
5
  SHA512:
6
- metadata.gz: 05756ca7664d6d05e994c423404cb4e41d4be212b116188776b9ecc6fcf59ac51c25c46c02e1577473dbebe7de373e8d871c4fa321ba5b937eeac9d83a4b6936
7
- data.tar.gz: 91308521be16051efcb2682d0fa4ae5a87adc497af77993c4674bc97d4371d5c2691c8b04452d7a94564a8b9fb2ed84b64deef7ef88c41b1a7a11ac4a6f6aa08
6
+ metadata.gz: 9dcf374789272f45d6b19c1179c02285de9ea3adfe9cd8fa3cc0449113060a91eb56e6609c71384756f49e078f3127e5e2b1f7bc964de54eecafe2308c470844
7
+ data.tar.gz: b5591387bfcc00721540e81f3cecd4f4e4e8a699f29329e29a3a8099d398d4439b8e8e6331dc6a4202d8734d1a7eb5dd74630413547cbd04b4d7faac4ea3068b
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  # frozen_string_literal: true
3
3
 
4
- # Pagy initializer file (3.7.1)
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
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  function Pagy(){}
4
4
 
5
- Pagy.version = '3.7.1';
5
+ Pagy.version = '3.7.2';
6
6
 
7
7
  Pagy.init = function(arg){
8
8
  var target = arg instanceof Event || arg === undefined ? document : arg,
@@ -4,7 +4,7 @@
4
4
 
5
5
  require 'pathname'
6
6
 
7
- class Pagy ; VERSION = '3.7.1'
7
+ class Pagy ; VERSION = '3.7.2'
8
8
 
9
9
  # Root pathname to get the path of Pagy files like templates or dictionaries
10
10
  def self.root; @root ||= Pathname.new(__FILE__).dirname.freeze end
@@ -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.1
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: 2019-12-09 00:00:00.000000000 Z
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,