wor-paginate 0.1.1 → 0.1.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
  SHA1:
3
- metadata.gz: fc3c1105ca6bf52848e18804dde6c665c14414de
4
- data.tar.gz: 237584e7f1540532825976c8977ffbee9e278e58
3
+ metadata.gz: c132c5ed81ed0fd7a10865503489da20b7e06c7c
4
+ data.tar.gz: 5c0e32b0b192fe03e5db0ab25f0626add6d5d007
5
5
  SHA512:
6
- metadata.gz: a6dba712cc92bea9cc51787df2964156edacdc386bd17aa33b9a7bbbab4d8426ced25c9d65f10af17b85b000416600fc3f31b55fe2b47bf85328f9a45e2cea90
7
- data.tar.gz: 04951425f5913d23c079cda1e366d118687fd3339ad7a007dbd3d485ab32b42c7ce792a2181d35b070993d75db7c917de77a79b26faca90503530d64be5e7f35
6
+ metadata.gz: 4316e7c26ce31de56bcefae8633b4ccc6d475970e68df809abb741360eb71c81f17caa575a2cbc48ccff861212646e89f8f7f432c5ce10b3105d8f9ba56497c0
7
+ data.tar.gz: 42aec48d35c8ecc52c5f23a50be685b8e88a78bc8218cbd681b420caaa220ac19f32d3e264365160af03879d6f7fc5963181f07ce6a42396c11de7d9fafb56dc
data/README.md CHANGED
@@ -46,7 +46,7 @@ The first parameter to render_paginated can be multiple things:
46
46
  The response to the index will then be:
47
47
  ```json
48
48
  {
49
- "items": [
49
+ "page": [
50
50
  {
51
51
  "id": 1,
52
52
  "name": "1c",
@@ -68,7 +68,7 @@ The response to the index will then be:
68
68
  "total_pages": 2,
69
69
  "total_count": 28,
70
70
  "current_page": 1,
71
-
71
+ "next_page": 2
72
72
  }
73
73
  ```
74
74
 
@@ -116,9 +116,9 @@ If either Kaminari or will_paginate are required in the project, Wor::Paginate w
116
116
  ### Test helpers
117
117
  You can use the `be_paginated` matcher to test your endpoints. It also accepts the `with` chain method to receive a formatter.
118
118
 
119
- You only need to add this in your spec_helper.rb (or rails_helper.rb)
119
+ You only need to add this in your rails_helper.rb
120
120
  ```
121
- # spec/spec_helper.rb
121
+ # spec/rails_helper.rb
122
122
  require 'wor/paginate/rspec'
123
123
  ```
124
124
  And in your spec do
@@ -1,5 +1,5 @@
1
1
  module Wor
2
2
  module Paginate
3
- VERSION = '0.1.1'.freeze
3
+ VERSION = '0.1.2'.freeze
4
4
  end
5
5
  end
data/wor-paginate.gemspec CHANGED
@@ -19,6 +19,6 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ['lib']
20
20
 
21
21
 
22
- s.add_dependency 'railties', '>= 4.1.0', "< 5.2"
22
+ s.add_dependency 'railties', '>= 4.1.0', "<= 5.2"
23
23
  s.add_dependency 'rails', '>= 4.0'
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wor-paginate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - hdf1986
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-08-11 00:00:00.000000000 Z
13
+ date: 2018-06-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
@@ -19,7 +19,7 @@ dependencies:
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
21
  version: 4.1.0
22
- - - "<"
22
+ - - "<="
23
23
  - !ruby/object:Gem::Version
24
24
  version: '5.2'
25
25
  type: :runtime
@@ -29,7 +29,7 @@ dependencies:
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
31
  version: 4.1.0
32
- - - "<"
32
+ - - "<="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '5.2'
35
35
  - !ruby/object:Gem::Dependency