Skip to content

Commit 859fd83

Browse files
committed
Bump version to 1.1.0
Signed-off-by: David Celis <[email protected]>
1 parent 7ef3037 commit 859fd83

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### 1.1.0 (Latest Release)
2+
3+
* Add support for [will_paginate](https://github.com/mislav/will_paginate) ([#1](https://github.com/davidcelis/api-pagination/pulls/1))
4+
* Test suite improvements ([#1](https://github.com/davidcelis/api-pagination/pulls/1))
5+
6+
### 1.0.0 (Initial Release)
7+
8+
* Initial release of api-pagination.
9+
* Support for Kaminari

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ Put pagination info in a Link header, not the response body.
77
In your `Gemfile`:
88

99
```ruby
10-
# Requires 'rails', '>= 3.0.0' and is compatible with 'rails-api'
10+
# Requires Rails and is compatible with Rails-API.
11+
gem 'rails', '>= 3.0.0'
12+
# gem 'rails-api'
13+
14+
# Then choose your preferred paginator from the following:
15+
gem 'kaminari'
16+
gem 'will_paginate'
17+
18+
# Finally...
1119
gem 'api-pagination'
1220
```
1321

@@ -50,7 +58,7 @@ Link: <http://localhost:3000/movies?page=1>; rel="first">,
5058
# ...
5159
```
5260

53-
api-pagination uses [Kaminari][kaminari] under the hood for paginating your ActiveRecord relations. See Kaminari's [documentation][kaminari-docs] for more information on its usage.
61+
While the above examples use [Kaminari][kaminari], api-pagination is also compatible with [will_paginate][will_paginate]. See either gem's README for more info on their respective usages.
5462

5563
## Contributing
5664

@@ -61,4 +69,4 @@ api-pagination uses [Kaminari][kaminari] under the hood for paginating your Acti
6169
5. Create a new Pull Request
6270

6371
[kaminari]: https://github.com/amatsuda/kaminari
64-
[kaminari-docs]: http://rubydoc.info/github/amatsuda/kaminari/frames
72+
[will_paginate]: https://github.com/mislav/will_paginate

lib/api-pagination/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module ApiPagination
22
MAJOR = 1
3-
MINOR = 0
3+
MINOR = 1
44
PATCH = 0
55

66
VERSION = [MAJOR, MINOR, PATCH].join('.')

0 commit comments

Comments
 (0)