tapsoob 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tapsoob/utils.rb +5 -9
- 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: b0408fb0805b9be99ccefd8bd26eb18e09fc7473a79df33cbfcf77303a06f3ce
|
4
|
+
data.tar.gz: dc975e0158b15183283d258582c2c88fed94973f3feb58992b245539934e0f12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 363ab2123d13b3c5b851daeac9fd60e3cf5e75204c457f9596fd2db6b38da06698fdf60db225a60fdbf3fd48979b35fb3750974ead69c179e8c94b2ba984d014
|
7
|
+
data.tar.gz: d7252fc4d6654fb9eb21f46f891c4134097ba8aa825ed9a614fe4a60ec89a7d9054033e8a1ef773d39bfeb9e75de26662bfe45e4e10a79580353aa7cac4a7706
|
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,15 +144,11 @@ 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
|
+
end
|
148
149
|
|
149
|
-
|
150
|
-
|
151
|
-
end
|
152
|
-
else
|
153
|
-
File.open(File.join(dump_path, "data", "#{table}.json"), 'w') do |file|
|
154
|
-
file.write(JSON.generate(data))
|
155
|
-
end
|
150
|
+
File.open(File.join(dump_path, "data", "#{table}.json"), 'w') do |file|
|
151
|
+
file.write(JSON.generate(data))
|
156
152
|
end
|
157
153
|
end
|
158
154
|
|
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.8
|
5
5
|
platform: ruby
|
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
|
name: ripl
|