cashbox 0.0.32 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e12db0ada32db43a6746e867990c3a468ce57a93
4
- data.tar.gz: 686814ffb4af40c119471807dbeca01deb6eb801
3
+ metadata.gz: d17e8700b633f1c18ed3e59569e8fd74c5c3b179
4
+ data.tar.gz: 2d2ac0b7349afa2bacd85c3ee542e190d63d143b
5
5
  SHA512:
6
- metadata.gz: d86921e089f6f84e80d9d0528e5d6e0c6802e57e81fcd15df8a68b8ea9182269e9339c161055c4017e5e2068fd0c22390491072fb8500da90085cca9a93b7377
7
- data.tar.gz: 5e606f78e058a1e26a6a57ea0d720f2fc30a273b720a30bf9d4003e43a5b3f0003adaa7beca68d3f4dec25aee1774d2742d0e000ea95b381fb4e6b1176e15904
6
+ metadata.gz: d22dace23091c8827bfd6d35040ccb420a2b8fd073098e56b7869082b4f8428a8ecabc04ae34cb4b3f1e698cd5b8dc86b735c1c5ba350ae21f89b961336ad093
7
+ data.tar.gz: 9cd22f3295d735921efd2e2ead5e03c1b5e2c4fddc2c94efeb3ce4c4635d1ba75fc1e9bdefefb74613a31971a700db8d39831c8fd119c7f0e5a4010cf4d3c69b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cashbox (0.0.30)
4
+ cashbox (0.0.33)
5
5
  activesupport
6
6
  addressable
7
7
  hashie
@@ -10,7 +10,7 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (5.2.1)
13
+ activesupport (5.2.0)
14
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
15
  i18n (>= 0.7, < 2)
16
16
  minitest (~> 5.1)
@@ -29,10 +29,10 @@ GEM
29
29
  debugger-linecache (1.2.0)
30
30
  diff-lcs (1.3)
31
31
  hashdiff (0.3.7)
32
- hashie (3.6.0)
32
+ hashie (3.5.7)
33
33
  httparty (0.16.2)
34
34
  multi_xml (>= 0.5.2)
35
- i18n (1.1.0)
35
+ i18n (1.0.1)
36
36
  concurrent-ruby (~> 1.0)
37
37
  method_source (0.9.0)
38
38
  minitest (5.11.3)
@@ -3,7 +3,6 @@ require 'active_support/concern'
3
3
  module Cashbox::Rest
4
4
  module ReadWrite
5
5
  extend ActiveSupport::Concern
6
-
7
6
  DEFAULT_LIMIT = 100.freeze
8
7
 
9
8
  included do
@@ -53,7 +52,7 @@ module Cashbox::Rest
53
52
  response = Cashbox::Request.new(:get, route, { query: params }).response
54
53
  objects = cast(self.new, response)
55
54
 
56
- if (response.next && (max.nil? || objects.count < max))
55
+ if (objects.count == DEFAULT_LIMIT) && (response.next && (max.nil? || objects.count < max))
57
56
  max -= objects.count if max
58
57
  params = Addressable::URI.parse(response.next).query_values
59
58
  objects.concat(query(params, max))
@@ -1,3 +1,3 @@
1
1
  module Cashbox
2
- VERSION = "0.0.32"
2
+ VERSION = "0.0.33"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cashbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.32
4
+ version: 0.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathon Storer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-31 00:00:00.000000000 Z
11
+ date: 2018-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  version: '0'
231
231
  requirements: []
232
232
  rubyforge_project:
233
- rubygems_version: 2.5.2
233
+ rubygems_version: 2.6.8
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: Cashbox Rest Client