ntq_excelsior_engine 0.3.1 → 0.3.2
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: 5079df1832c81393d48a170a45bf2af1d72ef5eb30115574008146f58e55a4ca
|
4
|
+
data.tar.gz: 4d3d56ea2e1a0fb9cbe7595be527ee02fc1b6234b2da97ca8a1a09c177c042b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1480ec6ea4d4d0baae5bd126f5e5d5d5cae9035ea733e1cb93c93a20c8d41f521103af4921b6e7e22a258ba251c455e1e4e8d0783d457020d0c620a207b93cc
|
7
|
+
data.tar.gz: df1616df6ad1a7bac29f84e3f7032e7f819830ba42a0b727e2f1f5d6b32c318f26375a280f79cc5160d7d35e5735c04e9bbb3ab030ccc5191a9e15af54476206
|
@@ -27,7 +27,7 @@ module NtqExcelsiorEngine
|
|
27
27
|
import.temp_file.unlink
|
28
28
|
rescue Roo::HeaderRowNotFoundError => e
|
29
29
|
message = e.message.gsub("\/i", "").gsub("/", "").slice(1..-1).chop
|
30
|
-
import.update(state: 'error', error_message: 'header_not_found', backtrace: message.split(', ').join('
|
30
|
+
import.update(state: 'error', error_message: 'header_not_found', backtrace: message.split(', ').join(','))
|
31
31
|
rescue => e
|
32
32
|
Appsignal.send_error(e)
|
33
33
|
import.update(state: 'error', backtrace: e.backtrace.join('\n'))
|
@@ -1,10 +1,15 @@
|
|
1
|
+
|
1
2
|
json.set! :data do
|
2
3
|
json.id @import_file.id
|
3
4
|
json.state @import_file.state
|
4
5
|
if @import_file.error?
|
5
|
-
json.error_file download_errors_file_url(@import_file.id)
|
6
6
|
json.error_message @import_file.error_message
|
7
|
-
|
7
|
+
if @import_file.error_message == "header_not_found"
|
8
|
+
json.missing_headers @import_file.backtrace.split(",")
|
9
|
+
else
|
10
|
+
json.error_file download_errors_file_url(@import_file.id)
|
11
|
+
json.backtrace @import_file.backtrace
|
12
|
+
end
|
8
13
|
end
|
9
14
|
if %[checked importing].include? @import_file.state
|
10
15
|
json.errors_count @import_file.import_lines.in_error.count
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ntq_excelsior_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|