tapsoob 0.4.15-java → 0.4.16-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tapsoob/data_stream.rb +3 -3
- data/lib/tapsoob/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5552561bbd6689d39f15fb5f2981aedc8a23bcbeee6a48c879cfdd95787b8997
|
4
|
+
data.tar.gz: 1dd506b6483e1d2bb29805adeea4bd58fd267b30d8332ea32631121ebc022669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 937f72eca25fdf75e6332aedda245bff93300ec31693a96363e4a99260927e59aeef108cfb76e636619201492c627cd6b336674c9871342d4745f5b279c42581
|
7
|
+
data.tar.gz: 288b6bc189ef4fee8986febf34d0d7857843b4bc54170fb0b8c26ac5e6de604605e6ec41cd27f1ef537ad92aeac6a472e5b4100c5e7978c66b3e5d4ad7960a53
|
data/lib/tapsoob/data_stream.rb
CHANGED
@@ -152,15 +152,15 @@ module Tapsoob
|
|
152
152
|
|
153
153
|
rows = parse_encoded_data(encoded_data, json[:checksum])
|
154
154
|
|
155
|
-
@complete = rows
|
155
|
+
@complete = rows == { }
|
156
156
|
|
157
157
|
# update local state
|
158
158
|
state.merge!(json[:state].merge(:chunksize => state[:chunksize]))
|
159
159
|
|
160
160
|
unless @complete
|
161
161
|
yield rows if block_given?
|
162
|
-
state[:offset] +=
|
163
|
-
|
162
|
+
state[:offset] += rows[:data].size
|
163
|
+
rows[:data].size
|
164
164
|
else
|
165
165
|
0
|
166
166
|
end
|
data/lib/tapsoob/version.rb
CHANGED