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 +4 -4
- data/README.md +4 -4
- data/lib/wor/paginate/version.rb +1 -1
- data/wor-paginate.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c132c5ed81ed0fd7a10865503489da20b7e06c7c
|
4
|
+
data.tar.gz: 5c0e32b0b192fe03e5db0ab25f0626add6d5d007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
"
|
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
|
119
|
+
You only need to add this in your rails_helper.rb
|
120
120
|
```
|
121
|
-
# spec/
|
121
|
+
# spec/rails_helper.rb
|
122
122
|
require 'wor/paginate/rspec'
|
123
123
|
```
|
124
124
|
And in your spec do
|
data/lib/wor/paginate/version.rb
CHANGED
data/wor-paginate.gemspec
CHANGED
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.
|
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:
|
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
|