pagy 3.7.0 → 3.7.1

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: 04bc8d434ab8fa91c3755122c9f04d0a3ab72e4e3f59a84234bfb2d7feb69e42
4
- data.tar.gz: 0a75675909e36c609f7d73b3a9ea3e7784097dd27cb34d265c1297b73fb96ff4
3
+ metadata.gz: bca8f924396671f0dfde589a69a4238032e555835255b6ca3250a831bf29ab9a
4
+ data.tar.gz: e07da6728acf08ff053807bbc3f9ab2e4617ad4ee0f9046b0208d40575df406f
5
5
  SHA512:
6
- metadata.gz: 96dd530c18f42cffcc2170f94967fd44f5c46568dbdba197d747aa39b00de8caec5478ed1c401ccd705636f14350553886bfeec95b36f583f499e66d3cf29cf6
7
- data.tar.gz: 987bbc4d012d1326e9540972bacd7a6b1df3081591bb4bbfc5337f20ba94bb6a9dfb2a90956ef2ac1b54076af39fa58f31e6f004c59998332fc4036f9f800df4
6
+ metadata.gz: 05756ca7664d6d05e994c423404cb4e41d4be212b116188776b9ecc6fcf59ac51c25c46c02e1577473dbebe7de373e8d871c4fa321ba5b937eeac9d83a4b6936
7
+ data.tar.gz: 91308521be16051efcb2682d0fa4ae5a87adc497af77993c4674bc97d4371d5c2691c8b04452d7a94564a8b9fb2ed84b64deef7ef88c41b1a7a11ac4a6f6aa08
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  # frozen_string_literal: true
3
3
 
4
- # Pagy initializer file (3.7.0)
4
+ # Pagy initializer file (3.7.1)
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.0';
5
+ Pagy.version = '3.7.1';
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.0'
7
+ class Pagy ; VERSION = '3.7.1'
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
@@ -23,7 +23,7 @@ class Pagy
23
23
  else
24
24
  # COUNT(*) OVER ()
25
25
  sql = Arel.star.count.over(Arel::Nodes::Grouping.new([]))
26
- collection.unscope(:order).limit(1).pluck(sql).first
26
+ collection.unscope(:order).limit(1).pluck(sql).first.to_i
27
27
  end
28
28
  end
29
29
 
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.0
4
+ version: 3.7.1
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-11-06 00:00:00.000000000 Z
11
+ date: 2019-12-09 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,