ntq_excelsior_engine 0.5.0 → 1.0.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f4b2117b5bcad713740a840b9738eac61833aaf8fa7615c7b9305114ccdc590
|
4
|
+
data.tar.gz: '009d89a2bd204f4703d42419d40e605b3979e5d34b3abdb573adc825348d0ab3'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b91fed9d9d6f51f45d52b6cac40de8a86d2e36586bb86942d4bcf56e26a32f7f88c6a423aa279cd1cc4c0269b39bc1765761c09610cf5649fc7a8236bea69be
|
7
|
+
data.tar.gz: 42426cf8978442cf2f6e246cd33de2cfb67d709be39ffb23d7ab2774ad549f14103fd13283875a65f772229d38b1e5455e66befb917ca1596d0c918b378057a8
|
@@ -18,7 +18,7 @@ module NtqExcelsiorEngine
|
|
18
18
|
line.update(status: result[:status], line_errors: result[:errors], action: result[:action])
|
19
19
|
end
|
20
20
|
sleep 2 if NtqExcelsiorEngine.debug
|
21
|
-
import.update(state: import.import_lines.in_error.any? &&
|
21
|
+
import.update(state: import.import_lines.in_error.any? && NtqExcelsiorEngine.skip_import_on_errors ? 'error' : 'checked')
|
22
22
|
rescue => e
|
23
23
|
p e.inspect
|
24
24
|
Appsignal.send_error(e)
|
@@ -13,10 +13,10 @@ module NtqExcelsiorEngine
|
|
13
13
|
importer = context.importer.new
|
14
14
|
begin
|
15
15
|
import.update(state: 'buffering')
|
16
|
-
|
16
|
+
|
17
17
|
importer.file = import.temp_file
|
18
18
|
lines = importer.lines
|
19
|
-
|
19
|
+
|
20
20
|
import_lines = []
|
21
21
|
lines.each do |line|
|
22
22
|
import_lines << NtqExcelsiorEngine::ImportLine.new(line: line, import: import)
|
@@ -31,7 +31,7 @@ module NtqExcelsiorEngine
|
|
31
31
|
rescue => e
|
32
32
|
raise e if NtqExcelsiorEngine.debug
|
33
33
|
Appsignal.send_error(e)
|
34
|
-
import.update(state: 'error', backtrace: e.backtrace.join('\n'))
|
34
|
+
import.update(state: 'error', error_message: e.message, backtrace: e.backtrace.join('\n'))
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|