wor-paginate 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/wor/paginate.rb +4 -0
- data/lib/wor/paginate/paginate.rb +5 -3
- data/lib/wor/paginate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f09070288ef65ad8eb2bf6ba05b8eead1911ac05
|
4
|
+
data.tar.gz: 2261daf2882a9452432b0eb59609f9ab89713463
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5aa479217e9dfa235b14c0a98678679b4c25e2fa997b470b204193bbb59ffaf670c6b33595e9d020a642064e86fd7f5348904e8724bbe10b1b755f60726dda5
|
7
|
+
data.tar.gz: 5beb45a05d1d79ee1b215186463bfab3ca430dc92204ce6e2e0a321930144149b44bc9f5c6eda697bbaaebc025ea8e39fb6bd57dd8011af72c3154fe35e4322e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
## Change log
|
2
2
|
|
3
|
+
### V0.1.10
|
4
|
+
* [#90](https://github.com/Wolox/wor-paginate/pull/90) Verify that default adapter adapts - [@mtejedorwolox](https://github.com/mtejedorwolox).
|
5
|
+
|
3
6
|
### V0.1.9
|
4
7
|
* [#88](https://github.com/Wolox/wor-paginate/pull/88) Default adapter - [@mtejedorwolox](https://github.com/mtejedorwolox).
|
5
8
|
* [#87](https://github.com/Wolox/wor-paginate/pull/87) Supporting expect(response).to be_paginated - [@mnmallea](https://github.com/mnmallea).
|
data/lib/wor/paginate.rb
CHANGED
@@ -32,9 +32,11 @@ module Wor
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def find_adapter_for_content(content, options)
|
35
|
-
|
36
|
-
|
37
|
-
|
35
|
+
adapters = []
|
36
|
+
adapters << Config.default_adapter if Config.default_adapter.present?
|
37
|
+
adapters += ADAPTERS
|
38
|
+
adapters.map { |adapter| adapter.new(content, page(options), limit(options)) }
|
39
|
+
.find(&:adapt?)
|
38
40
|
end
|
39
41
|
|
40
42
|
def page(options)
|
data/lib/wor/paginate/version.rb
CHANGED