tapsoob 0.4.6-java → 0.4.11-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tapsoob/data_stream.rb +2 -2
- data/lib/tapsoob/utils.rb +3 -3
- data/lib/tapsoob/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2cf4e1a477702c83fef41cbd102880abb239bdece3c43dc0fe0a48eb8f2f520
|
4
|
+
data.tar.gz: d5b04a8141562e8ed0e395d51e9471d05af508d05b98599b79245f1bda840f5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7960436ecedda8258161b36eb53d3fc0edc36bddc88ca0efc0f22ae3fe55bc0bb00de21d4483a6927d7441689f2d8d6c40d6a8f925ba698278eab0a0ff89ae8
|
7
|
+
data.tar.gz: cfda973434523bef491cea4d4bcbd7112b35c5f6d6fb41c54bf030af21467811007b09e5cf05295b8520835bf3fa185c56b29ff83958761e114548ab8ca9eae4
|
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].size.nil? ? 0 : rows[:data].size)
|
163
|
+
rows[:data].size || 0
|
164
164
|
else
|
165
165
|
0
|
166
166
|
end
|
data/lib/tapsoob/utils.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
2
|
require 'zlib'
|
3
|
-
require 'active_support/core_ext/file/atomic.rb'
|
3
|
+
#require 'active_support/core_ext/file/atomic.rb'
|
4
4
|
|
5
5
|
require 'tapsoob/errors'
|
6
6
|
require 'tapsoob/chunksize'
|
@@ -144,10 +144,10 @@ 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] =
|
147
|
+
data[:data] = previous_data["data"] + row_data[:data]
|
148
148
|
end
|
149
149
|
|
150
|
-
File.
|
150
|
+
File.open(File.join(dump_path, "data", "#{table}.json"), 'w') do |file|
|
151
151
|
file.write(JSON.generate(data))
|
152
152
|
end
|
153
153
|
end
|
data/lib/tapsoob/version.rb
CHANGED
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.
|
4
|
+
version: 0.4.11
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Félix Bellanger
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-07-
|
12
|
+
date: 2021-07-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|