productive 0.6.22 → 0.6.24
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 +6 -4
- data/lib/productive/version.rb +1 -1
- data/productive.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e130193279b76d0870cd5bc7e0d931e86647785d
|
4
|
+
data.tar.gz: 6af2cc2b6c5724a07a792a08b2bb1c06f4afc754
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48d2aa2e9f01e1a5be4cc71788c0deb583e7866639670255a6bd880d29d240b5622ed0be9c7104b2ef05b9a87576c9bb16ab3450b1cf71efd91a60bd13b3334e
|
7
|
+
data.tar.gz: 1081b0f7c43ce6debc896817968a6c2eb08e6921e937f662d2a528d339bf6b846bf31e9162e70ccb562304a5b8874266bc7ccc38b887d83dfa22fab858cd57f4
|
@@ -1,15 +1,17 @@
|
|
1
1
|
class JsonApiQueryBuilder < JsonApiClient::Query::Builder
|
2
2
|
def all
|
3
3
|
@all ||= begin
|
4
|
-
results =
|
4
|
+
results = []
|
5
|
+
page_number = 1
|
5
6
|
|
6
7
|
loop do
|
7
|
-
page = page.
|
8
|
-
break if page.
|
8
|
+
page = page(page_number).find
|
9
|
+
break if page.blank?
|
9
10
|
results += page
|
11
|
+
page_number += 1
|
10
12
|
end
|
11
13
|
|
12
14
|
results
|
13
15
|
end
|
14
16
|
end
|
15
|
-
end
|
17
|
+
end
|
data/lib/productive/version.rb
CHANGED
data/productive.gemspec
CHANGED
@@ -14,6 +14,6 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.files = `git ls-files`.split("\n")
|
15
15
|
|
16
16
|
s.add_dependency 'rack'
|
17
|
-
s.add_dependency 'json_api_client', '1.
|
18
|
-
s.add_dependency 'request_store', '
|
17
|
+
s.add_dependency 'json_api_client', '1.5.2'
|
18
|
+
s.add_dependency 'request_store', '~> 1.3.2'
|
19
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: productive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josip Bišćan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -30,26 +30,26 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.5.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.5.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: request_store
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 1.3.2
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 1.3.2
|
55
55
|
description: Productive API client
|