pagy 5.1.2 → 5.1.3

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: 4af6c795ba446552a412f0f45e76a267cf767d8f4dec3564a90096525bb298ea
4
- data.tar.gz: 57a3f62877f0ed653ebe68f59963fb865e252e68c55e5c3a91794b9aa3b9584a
3
+ metadata.gz: a490edf32ff73a19ad4f36527bac6d78fafef9d8fbffa856cecdf69acaa12a0c
4
+ data.tar.gz: 88c7c87f8ebaaadf628921b0ad3defe769875f2a7d87c55b61c09ee3eba72ea0
5
5
  SHA512:
6
- metadata.gz: 0520f9933ea293895b8d26b0a78ea0af1a61054b5b89fce3a06c1f8f292d82357f6e105f76ab7bd4665f6ee9765bc69ce284428b8fe61b8f0a6b4768136c8e4a
7
- data.tar.gz: '0903950d58220f510b5c2700b42f23f19c5cd267bc73eb5404d918863717b816836609256ef3a340534a9bc74e50260915b8b023b502c9dbe503bb443fab968f'
6
+ metadata.gz: 3af70d18f3d74f1bed4df53e21473117365b7b8fb4e58912f1cdae5ca9ac4c59c7bd76ab31856c3617381c0a0fc78dd23f9508f5f4620d7756326d174844f6a1
7
+ data.tar.gz: 5ca447531cfeb68d3c5cd2c729ac6f32c17f214db2438fb4a54704ec0e6dc634f81a367ed176e76deffe3b08e3e78829af2870db8e66c47ca0f6440d78ab906b
data/lib/config/pagy.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Pagy initializer file (5.1.2)
3
+ # Pagy initializer file (5.1.3)
4
4
  # Customize only what you really need and notice that Pagy works also without any of the following lines.
5
5
  # Should you just cherry pick part of this file, please maintain the require-order of the extras
6
6
 
@@ -3,7 +3,7 @@
3
3
  // Container of the whole pagy stuff
4
4
  function Pagy(){}
5
5
 
6
- Pagy.version = '5.1.2'
6
+ Pagy.version = '5.1.3'
7
7
 
8
8
  // Used by the waitForMe function
9
9
  Pagy.delay = 100
@@ -8,7 +8,7 @@ class Pagy
8
8
  # For non-rack environments you can use the standalone extra
9
9
  def pagy_url_for(pagy, page, absolute: nil)
10
10
  vars = pagy.vars
11
- params = request.params.merge(vars[:params].transform_keys(&:to_s))
11
+ params = request.GET.merge(vars[:params].transform_keys(&:to_s))
12
12
  params[vars[:page_param].to_s] = page
13
13
  params[vars[:items_param].to_s] = vars[:items] if vars[:items_extra]
14
14
 
data/lib/pagy.rb CHANGED
@@ -5,7 +5,7 @@ require 'pathname'
5
5
 
6
6
  # Core class
7
7
  class Pagy
8
- VERSION = '5.1.2'
8
+ VERSION = '5.1.3'
9
9
 
10
10
  # Root pathname to get the path of Pagy files like templates or dictionaries
11
11
  def self.root
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: 5.1.2
4
+ version: 5.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Domizio Demichelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-25 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Agnostic pagination in plain ruby. It does it all. Better.
14
14
  email: