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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4eb355e2e788692b281d40f9ef2d101eef85485ca76793194d53cd5f5a5b2d18
4
- data.tar.gz: 6b3090fa7074a6b3ad109c6cf2d1bf7e92ab168818dc68aeb2dd08a5dbaf8f2e
3
+ metadata.gz: 8e51d75e2660aa59d031c00483240f184f15d2776d4c37470bfbee7ed1dd57a2
4
+ data.tar.gz: faa522eceb7a6ace73224dc9a24ff29256a82d54d6ed249a331e8deefbe56382
5
5
  SHA512:
6
- metadata.gz: c114e92d07dac9f3a47efc6c754d8b3ca8f7dfde8e46f7c04bbb35dd76e99879e52cf565d889645b841d363380db3c7c2bd15a571aaabc65675af1bb0ab738a6
7
- data.tar.gz: 8ab8eac80d11c27af0b69d7fa32be4d3e8968981b993b19c3cfd2048ca9ce2632c640c366f25a8f40d377311ab07cee1293b6fcf1d0436a1ff0e3aa764f35521
6
+ metadata.gz: 06a931a110d4622351585b05577b2dd269b88b7b4337b40da887b1b7b9fec4b83d8d06f9333ab1fea315db23111424b1b83d54964867a57750c117ab776c1ed2
7
+ data.tar.gz: c711d71396894e99138bac013c7cc9a9972566b5e4f0e0f1f27473cbca028a15c6660690c893fb793bb25fb9e56d14afe4ffcd2e9d0da08cbc9df4410f04fab0
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'pathname'
4
4
 
5
- class Pagy ; VERSION = '0.7.1'
5
+ class Pagy ; VERSION = '0.7.2'
6
6
 
7
7
  autoload :Backend, 'pagy/backend'
8
8
  autoload :Frontend, 'pagy/frontend'
@@ -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
- url << '?' << Rack::Utils.build_nested_query(pagy_get_params(params))
38
+ "#{request.path}?#{Rack::Utils.build_nested_query(pagy_get_params(params))}"
40
39
  end
41
40
 
42
41
 
@@ -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.1
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-27 00:00:00.000000000 Z
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