tapsoob 0.4.10-java → 0.4.16-java

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
  SHA256:
3
- metadata.gz: 97bbe58ff70b73ebdb56cb4191d940b82a74bb8476a679570f8b7336a9638641
4
- data.tar.gz: 5ddea87467ed856760d3c7f57810e986f2271edf2a17c4baa8e0b29e8ee7b9a0
3
+ metadata.gz: 5552561bbd6689d39f15fb5f2981aedc8a23bcbeee6a48c879cfdd95787b8997
4
+ data.tar.gz: 1dd506b6483e1d2bb29805adeea4bd58fd267b30d8332ea32631121ebc022669
5
5
  SHA512:
6
- metadata.gz: d1ddd638db4e6e9a7a8899ab4a2b305d69be04ea46cd64d87f0d1c49a00bfc8f8a76c51c08288cb463d294baf1fde83263d8d29ca9ea35b5708012adcf173603
7
- data.tar.gz: da7d40bf66cf7f9430757124641e4a35d33d4f775e83afb7fc980487fba6d27a16c414b8126eace326257f76b89ce7de30f048f9cbdea4de05b8f9e79fce0f8e
6
+ metadata.gz: 937f72eca25fdf75e6332aedda245bff93300ec31693a96363e4a99260927e59aeef108cfb76e636619201492c627cd6b336674c9871342d4745f5b279c42581
7
+ data.tar.gz: 288b6bc189ef4fee8986febf34d0d7857843b4bc54170fb0b8c26ac5e6de604605e6ec41cd27f1ef537ad92aeac6a472e5b4100c5e7978c66b3e5d4ad7960a53
@@ -152,15 +152,15 @@ module Tapsoob
152
152
 
153
153
  rows = parse_encoded_data(encoded_data, json[:checksum])
154
154
 
155
- @complete = rows[:data] == [ ]
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] += rows[:data].size || 0
163
- rows[:data].size || 0
162
+ state[:offset] += rows[:data].size
163
+ rows[:data].size
164
164
  else
165
165
  0
166
166
  end
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|
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Tapsoob
3
- VERSION = "0.4.10".freeze
3
+ VERSION = "0.4.16".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tapsoob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.10
4
+ version: 0.4.16
5
5
  platform: java
6
6
  authors:
7
7
  - Félix Bellanger