productive 0.6.24 → 0.6.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/json_api_query_builder.rb +2 -6
- data/lib/productive/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: 85491a789b74ec127cf00a3a544e3b1b569e5402
|
4
|
+
data.tar.gz: 3171997f009abc417ea25e4bfac2ba8bfcfb8d3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1aefe7904ff86fa7dd3313a390687a414163e21f81e4396e020288f0e1600fe228a86ca4ee5838233cedcf062ecc8428d8f43fc2323691d14cd0cee307e0918b
|
7
|
+
data.tar.gz: 28a308549a68dd39de5ffb13a02607422ee66e36104351a3010b83b3d9afea1879d3c028e0a366bbdf03a920df9363513415758bc9daecef46b1cd4daebf808b
|
@@ -2,13 +2,9 @@ class JsonApiQueryBuilder < JsonApiClient::Query::Builder
|
|
2
2
|
def all
|
3
3
|
@all ||= begin
|
4
4
|
results = []
|
5
|
-
page_number = 1
|
6
5
|
|
7
|
-
|
8
|
-
|
9
|
-
break if page.blank?
|
10
|
-
results += page
|
11
|
-
page_number += 1
|
6
|
+
meta.total_pages.times do |page|
|
7
|
+
results += page(page + 1).find
|
12
8
|
end
|
13
9
|
|
14
10
|
results
|
data/lib/productive/version.rb
CHANGED