grape-kaminari 0.1.2 → 0.1.3

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: 5570765eee28e161dc4a2682320f3638b33e7fa3
4
- data.tar.gz: 936ea61aaf8c991306dbe8e7fedaf4d613d87fda
3
+ metadata.gz: 39b9d10952bfee243f89be38b9e6af5719e8ca22
4
+ data.tar.gz: e01b8109a433341d6793016933eadc25e8c6d70d
5
5
  SHA512:
6
- metadata.gz: f7ca80cef3e3884208dd1646c47cf22818b24120d8dc6d5459b8dcfc7455a924fc5edcc7e9d9945ec9458e1c516d6931597ec0763a6e38846d065ee8ff579abf
7
- data.tar.gz: 4957da7b2545226f043e0b76c254da1724adaf12d6fcc39dd7c3b3a49cfb7efa71f76382ecef902791e2d6cdf6afe57310891aac8d02967f343b19f16115f524
6
+ metadata.gz: ae5c59b3b36412709143aa530463290842e937060c1581bc8b42ca51002dad01f07c58f8182a472d25cde9c365ea82bd0ab97329dec1be5eb7cb122d7d405839
7
+ data.tar.gz: 3ed3761cdf18785e129fb22250567fe83af2e2735af4ad96b40ad452debf1b5844da4ea48a6d80c9234fa9140762975b9ab39a56f8aa102f7f4f33bb481efa2f
data/README.md CHANGED
@@ -50,7 +50,7 @@ class MyApi < Grape::API
50
50
  end
51
51
  ```
52
52
 
53
- Now you can make a HTTP request to you are endpoint with `page` (and `per_page`) params
53
+ Now you can make a HTTP request to your endpoint with `page` (and `per_page`) params
54
54
 
55
55
  ```
56
56
  curl -v http://host.dev/api/posts?page=3
@@ -21,8 +21,8 @@ module Grape
21
21
 
22
22
  def self.paginate(options = {})
23
23
  options.reverse_merge!(
24
- per_page: 10,
25
- max_per_page: false
24
+ per_page: ::Kaminari.config.default_per_page || 10,
25
+ max_per_page: ::Kaminari.config.max_per_page
26
26
  )
27
27
  params do
28
28
  optional :page, type: Integer, default: 1,
@@ -1,5 +1,5 @@
1
1
  module Grape
2
2
  module Kaminari
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tymon Tobolski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-12 00:00:00.000000000 Z
11
+ date: 2014-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape