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 +4 -4
- data/lib/grape/kaminari.rb +1 -1
- data/lib/grape/kaminari/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4c7f02a80485e75ee802043d9eef21f54479e2c
|
4
|
+
data.tar.gz: 6bb9d2a78c258d53026ebf5a351c7808e0bc6d22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 219b6b3bc7bf4e55892ac042858f671b7d665433bc709a20e16ca476bf20589dc4cf4e5a3f5734cc8337a95d5e5d7b12ed361ba419b8bf7b9338bfbad13505ac
|
7
|
+
data.tar.gz: 7560c7ac82858a49aadbd8569cc9ce46d124f248af0af69f263d2560d4a6c160913462eae15cb7386052cfebaa6936df0d18dd5ba287dc87388ce434d8aebcda
|
data/lib/grape/kaminari.rb
CHANGED
@@ -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.
|
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
|
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.
|
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:
|
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
|