grape-kaminari 0.1.7 → 0.1.8
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 +2 -1
- data/lib/grape/kaminari/version.rb +1 -1
- data/spec/paginate_helper_spec.rb +1 -0
- 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: 663d1ddc692320b72e10892e6557c37409f3dd0d
|
4
|
+
data.tar.gz: c87f596ddf5cae8c6251466e2a6b8ceef59a3a84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47329f62f0d29254b685fc43fac300625e2db36b2c5a09a457f7405c243d603c5bb6e42d9aa6e944c32d0cf62dea72ee209c9062eb1a20dc06f7251bb2df1567
|
7
|
+
data.tar.gz: cc550d350419d156ea34fd65caa5b3e6453d64034f668e203fc1e0542494749c48f7cc257edb7db37011ed30bdc65c84604bdc7e3c9f2dd125381db4ecb3457c
|
data/lib/grape/kaminari.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require "grape"
|
1
2
|
require "grape/kaminari/version"
|
2
3
|
require "grape/kaminari/max_value_validator"
|
3
4
|
require "kaminari/grape"
|
@@ -11,7 +12,7 @@ module Grape
|
|
11
12
|
collection.page(params[:page]).per(params[:per_page]).padding(params[:offset]).tap do |data|
|
12
13
|
header "X-Total", data.total_count.to_s
|
13
14
|
header "X-Total-Pages", data.num_pages.to_s
|
14
|
-
header "X-Per-Page",
|
15
|
+
header "X-Per-Page", data.limit_value.to_s
|
15
16
|
header "X-Page", data.current_page.to_s
|
16
17
|
header "X-Next-Page", data.next_page.to_s
|
17
18
|
header "X-Prev-Page", data.prev_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.8
|
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-
|
11
|
+
date: 2015-07-15 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.
|
123
|
+
rubygems_version: 2.4.5
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: kaminari integration for grape
|