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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e130193279b76d0870cd5bc7e0d931e86647785d
4
- data.tar.gz: 6af2cc2b6c5724a07a792a08b2bb1c06f4afc754
3
+ metadata.gz: 85491a789b74ec127cf00a3a544e3b1b569e5402
4
+ data.tar.gz: 3171997f009abc417ea25e4bfac2ba8bfcfb8d3a
5
5
  SHA512:
6
- metadata.gz: 48d2aa2e9f01e1a5be4cc71788c0deb583e7866639670255a6bd880d29d240b5622ed0be9c7104b2ef05b9a87576c9bb16ab3450b1cf71efd91a60bd13b3334e
7
- data.tar.gz: 1081b0f7c43ce6debc896817968a6c2eb08e6921e937f662d2a528d339bf6b846bf31e9162e70ccb562304a5b8874266bc7ccc38b887d83dfa22fab858cd57f4
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
- loop do
8
- page = page(page_number).find
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
@@ -1,3 +1,3 @@
1
1
  module Productive
2
- VERSION = '0.6.24'.freeze
2
+ VERSION = '0.6.25'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: productive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.24
4
+ version: 0.6.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josip Bišćan