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 +4 -4
- data/lib/config/pagy.rb +1 -1
- data/lib/javascripts/pagy.js +1 -1
- data/lib/pagy/url_helpers.rb +1 -1
- data/lib/pagy.rb +1 -1
- 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: a490edf32ff73a19ad4f36527bac6d78fafef9d8fbffa856cecdf69acaa12a0c
|
4
|
+
data.tar.gz: 88c7c87f8ebaaadf628921b0ad3defe769875f2a7d87c55b61c09ee3eba72ea0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
|
data/lib/javascripts/pagy.js
CHANGED
data/lib/pagy/url_helpers.rb
CHANGED
@@ -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.
|
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
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.
|
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-
|
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:
|