tapsoob 0.4.9-java → 0.4.15-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 +2 -2
- data/lib/tapsoob/operation.rb +0 -2
- data/lib/tapsoob/utils.rb +1 -1
- 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: bf90aef94141e6d998c8ec0661f8d0b2d6f4340b40a565113bee04865c881314
|
4
|
+
data.tar.gz: 4123d828e01e86483c8ebf0a2a600e2eeb1c5a7788fc699e6348bee62fd95304
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac7bba0277b68116b4a46673d90f0f6bef88d35293ad47d517f3f23928c65fc42041e4da6ecb7bf6ddf3028828d7c85858b703fdb3c9d25685a806f29a1d12f3
|
7
|
+
data.tar.gz: fe2aeb16c60b303db8190e0b20de0e4129410c50ad17b0a71ef7e64793a0ea80df35582b1747098270f40f83d0ceb4c07ec60021d9c21e1456e996f07e692e90
|
data/lib/tapsoob/data_stream.rb
CHANGED
@@ -159,8 +159,8 @@ module Tapsoob
|
|
159
159
|
|
160
160
|
unless @complete
|
161
161
|
yield rows if block_given?
|
162
|
-
state[:offset] += rows[:data].size
|
163
|
-
rows[:data].size
|
162
|
+
state[:offset] += (rows[:data].nil? ? 0 : rows[:data].size)
|
163
|
+
(rows[:data].nil? ? 0 : rows[:data].size)
|
164
164
|
else
|
165
165
|
0
|
166
166
|
end
|
data/lib/tapsoob/operation.rb
CHANGED
data/lib/tapsoob/utils.rb
CHANGED
@@ -144,7 +144,7 @@ Data : #{data}
|
|
144
144
|
data = row_data
|
145
145
|
if File.exists?(File.join(dump_path, "data", "#{table}.json"))
|
146
146
|
previous_data = JSON.parse(File.read(File.join(dump_path, "data", "#{table}.json")))
|
147
|
-
data[:data] = previous_data["data"] + row_data[:data]
|
147
|
+
data[:data] = previous_data["data"] + row_data[:data] unless row_data[:data].nil?
|
148
148
|
end
|
149
149
|
|
150
150
|
File.open(File.join(dump_path, "data", "#{table}.json"), 'w') do |file|
|
data/lib/tapsoob/version.rb
CHANGED