cashbox 0.0.32 → 0.0.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/lib/cashbox/rest/read_write.rb +1 -2
- data/lib/cashbox/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d17e8700b633f1c18ed3e59569e8fd74c5c3b179
|
4
|
+
data.tar.gz: 2d2ac0b7349afa2bacd85c3ee542e190d63d143b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d22dace23091c8827bfd6d35040ccb420a2b8fd073098e56b7869082b4f8428a8ecabc04ae34cb4b3f1e698cd5b8dc86b735c1c5ba350ae21f89b961336ad093
|
7
|
+
data.tar.gz: 9cd22f3295d735921efd2e2ead5e03c1b5e2c4fddc2c94efeb3ce4c4635d1ba75fc1e9bdefefb74613a31971a700db8d39831c8fd119c7f0e5a4010cf4d3c69b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cashbox (0.0.
|
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.
|
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.
|
32
|
+
hashie (3.5.7)
|
33
33
|
httparty (0.16.2)
|
34
34
|
multi_xml (>= 0.5.2)
|
35
|
-
i18n (1.1
|
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))
|
data/lib/cashbox/version.rb
CHANGED
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.
|
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-
|
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.
|
233
|
+
rubygems_version: 2.6.8
|
234
234
|
signing_key:
|
235
235
|
specification_version: 4
|
236
236
|
summary: Cashbox Rest Client
|