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: 48a08bd1c92e4e861728fbf3445600723c48cbed73ff694a1f6559ea6e207719
4
- data.tar.gz: 1c3d20ca232b9d42a4d4715d2acacdc8783c00ee2b2af9c4cf2491703ae20205
3
+ metadata.gz: 0f4b2117b5bcad713740a840b9738eac61833aaf8fa7615c7b9305114ccdc590
4
+ data.tar.gz: '009d89a2bd204f4703d42419d40e605b3979e5d34b3abdb573adc825348d0ab3'
5
5
  SHA512:
6
- metadata.gz: 76ec3fd54d521dfaa970f0bc063cda42a152cd6504a9aec73ae1e7a40f974f6473c0f6ded3c89a4321823868271b9f654b777dbf0d5115504c4dcacc4dabfdd6
7
- data.tar.gz: f3f4d872bde471832fdb9615d8f0b84c27212123dcd84f02c364e168e8b5192febdcd6a9c88a432cd22257180d4e44fbdc42e86e0ac54c04f8581a895fc78ed0
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? && !NtqExcelsiorEngine.skip_import_on_errors ? 'error' : 'checked')
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
@@ -1,3 +1,3 @@
1
1
  module NtqExcelsiorEngine
2
- VERSION = "0.5.0"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ntq_excelsior_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin