pagy 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pagy.rb +1 -1
- data/lib/pagy/frontend.rb +1 -2
- data/pagy.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e51d75e2660aa59d031c00483240f184f15d2776d4c37470bfbee7ed1dd57a2
|
4
|
+
data.tar.gz: faa522eceb7a6ace73224dc9a24ff29256a82d54d6ed249a331e8deefbe56382
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06a931a110d4622351585b05577b2dd269b88b7b4337b40da887b1b7b9fec4b83d8d06f9333ab1fea315db23111424b1b83d54964867a57750c117ab776c1ed2
|
7
|
+
data.tar.gz: c711d71396894e99138bac013c7cc9a9972566b5e4f0e0f1f27473cbca028a15c6660690c893fb793bb25fb9e56d14afe4ffcd2e9d0da08cbc9df4410f04fab0
|
data/lib/pagy.rb
CHANGED
data/lib/pagy/frontend.rb
CHANGED
@@ -34,9 +34,8 @@ class Pagy
|
|
34
34
|
|
35
35
|
# this works with all Rack-based frameworks (Sinatra, Padrino, Rails, ...)
|
36
36
|
def pagy_url_for(n)
|
37
|
-
url = File.join(request.script_name.to_s, request.path_info)
|
38
37
|
params = request.GET.merge('page'.freeze => n.to_s)
|
39
|
-
|
38
|
+
"#{request.path}?#{Rack::Utils.build_nested_query(pagy_get_params(params))}"
|
40
39
|
end
|
41
40
|
|
42
41
|
|
data/pagy.gemspec
CHANGED
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_development_dependency 'bundler', '~> 1.16'
|
24
24
|
s.add_development_dependency 'rake', '~> 10.0'
|
25
25
|
s.add_development_dependency 'minitest', '~> 5.0'
|
26
|
+
s.add_development_dependency 'rack'
|
26
27
|
s.add_development_dependency 'slim'
|
27
28
|
s.add_development_dependency 'haml'
|
28
29
|
s.add_development_dependency 'benchmark-ips'
|
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: 0.7.
|
4
|
+
version: 0.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: 2018-05-
|
11
|
+
date: 2018-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rack
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: slim
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|