grape-kaminari 0.1.8 → 0.1.9

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
  SHA1:
3
- metadata.gz: 663d1ddc692320b72e10892e6557c37409f3dd0d
4
- data.tar.gz: c87f596ddf5cae8c6251466e2a6b8ceef59a3a84
3
+ metadata.gz: d4c7f02a80485e75ee802043d9eef21f54479e2c
4
+ data.tar.gz: 6bb9d2a78c258d53026ebf5a351c7808e0bc6d22
5
5
  SHA512:
6
- metadata.gz: 47329f62f0d29254b685fc43fac300625e2db36b2c5a09a457f7405c243d603c5bb6e42d9aa6e944c32d0cf62dea72ee209c9062eb1a20dc06f7251bb2df1567
7
- data.tar.gz: cc550d350419d156ea34fd65caa5b3e6453d64034f668e203fc1e0542494749c48f7cc257edb7db37011ed30bdc65c84604bdc7e3c9f2dd125381db4ecb3457c
6
+ metadata.gz: 219b6b3bc7bf4e55892ac042858f671b7d665433bc709a20e16ca476bf20589dc4cf4e5a3f5734cc8337a95d5e5d7b12ed361ba419b8bf7b9338bfbad13505ac
7
+ data.tar.gz: 7560c7ac82858a49aadbd8569cc9ce46d124f248af0af69f263d2560d4a6c160913462eae15cb7386052cfebaa6936df0d18dd5ba287dc87388ce434d8aebcda
@@ -11,7 +11,7 @@ module Grape
11
11
  def paginate(collection)
12
12
  collection.page(params[:page]).per(params[:per_page]).padding(params[:offset]).tap do |data|
13
13
  header "X-Total", data.total_count.to_s
14
- header "X-Total-Pages", data.num_pages.to_s
14
+ header "X-Total-Pages", data.total_pages.to_s
15
15
  header "X-Per-Page", data.limit_value.to_s
16
16
  header "X-Page", data.current_page.to_s
17
17
  header "X-Next-Page", data.next_page.to_s
@@ -1,5 +1,5 @@
1
1
  module Grape
2
2
  module Kaminari
3
- VERSION = "0.1.8"
3
+ VERSION = "0.1.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-kaminari
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tymon Tobolski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-15 00:00:00.000000000 Z
11
+ date: 2016-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.4.5
123
+ rubygems_version: 2.4.5.1
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: kaminari integration for grape