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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98fe4031f07f0f02cf2376caf749e81bcdc6ffc9
4
- data.tar.gz: 2bce466aec4d87892585020dfd52fcf0ec3e840d
3
+ metadata.gz: e130193279b76d0870cd5bc7e0d931e86647785d
4
+ data.tar.gz: 6af2cc2b6c5724a07a792a08b2bb1c06f4afc754
5
5
  SHA512:
6
- metadata.gz: ec869a6f9ed9846df4106e29671d378030974dd7a636104d14f0c40e8cd7d2d7701753fbaf8849e713be8a76723c3ccf903583d6075a63022b4809e7645b9f4e
7
- data.tar.gz: 861000e88e9c5e9b65b04012ff749a190eeca15b058fb808d582fe453f64fd51ed111d2a193ee0c0e356a8d637ab0cd94735b9d80b0b06327de7bf453629b5ae
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 = page = find
4
+ results = []
5
+ page_number = 1
5
6
 
6
7
  loop do
7
- page = page.pages.next
8
- break if page.nil?
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
@@ -1,3 +1,3 @@
1
1
  module Productive
2
- VERSION = '0.6.22'.freeze
2
+ VERSION = '0.6.24'.freeze
3
3
  end
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.16.1'
18
- s.add_dependency 'request_store', '>= 1.3.2'
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.22
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-05 00:00:00.000000000 Z
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.16.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.16.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