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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd3a54661b0a8474a723548e41e7cad6a3d8569d53e8cfdbac8331be8fcca6bc
4
- data.tar.gz: 4fc4eb6cb18757d7f6844e304486000415f462babf860582261a76b184f059bf
3
+ metadata.gz: bf90aef94141e6d998c8ec0661f8d0b2d6f4340b40a565113bee04865c881314
4
+ data.tar.gz: 4123d828e01e86483c8ebf0a2a600e2eeb1c5a7788fc699e6348bee62fd95304
5
5
  SHA512:
6
- metadata.gz: d3c130041ae122ba72981868b1a2408f097ffabe515611431920690c54e37c1d87ecaef079acf6bb5c3e452d5e9722200f20c27d79da06ad2bca85c3ab4fe783
7
- data.tar.gz: 1f899b8b2ed88771b9a9f5bcf96bc9758d456de9c7282aec1d9dc44d1ab9f717016046b5a975abd6b3a745658b6d73cf61994480f7861d37059f8ee509bdc570
6
+ metadata.gz: ac7bba0277b68116b4a46673d90f0f6bef88d35293ad47d517f3f23928c65fc42041e4da6ecb7bf6ddf3028828d7c85858b703fdb3c9d25685a806f29a1d12f3
7
+ data.tar.gz: fe2aeb16c60b303db8190e0b20de0e4129410c50ad17b0a71ef7e64793a0ea80df35582b1747098270f40f83d0ceb4c07ec60021d9c21e1456e996f07e692e90
@@ -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
@@ -216,8 +216,6 @@ module Tapsoob
216
216
  end
217
217
 
218
218
  def pull_data_from_table(stream, progress)
219
- size = 0
220
-
221
219
  loop do
222
220
  begin
223
221
  exit 0 if exiting?
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.9".freeze
3
+ VERSION = "0.4.15".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.9
4
+ version: 0.4.15
5
5
  platform: java
6
6
  authors:
7
7
  - Félix Bellanger