ntq_excelsior 1.2.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/ntq_excelsior/importer.rb +6 -2
- data/lib/ntq_excelsior/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: 6c3cb9fc73c0fa504c6688f4ee4c2da018b66af2234f083a10a1f4ee4811068a
|
4
|
+
data.tar.gz: abd746af68004464bf1557e0ecb7d1a428d446330017fd853b69ed7cf17af38d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a87e8c0ac39d28069d2c8c054bf070bc4fb6394414130f0f32b3378f92eba19ca59517b95aacb4b2002bc56105a125b5e013c2c99c1483b3da04dc4a52bf9d07
|
7
|
+
data.tar.gz: b2238ec59fc5f4a4a216e1ec6dc57991024c1a19f44ddfdcf82e2f900aad9b6e6023161c9b286f974f6d2ca791e57ffde1011b19ac7283f31036db70ea13d1dd
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ntq_excelsior (1.2.
|
4
|
+
ntq_excelsior (1.2.2)
|
5
5
|
caxlsx (< 4)
|
6
6
|
roo (< 3)
|
7
7
|
|
@@ -29,7 +29,7 @@ GEM
|
|
29
29
|
rake (13.0.6)
|
30
30
|
regexp_parser (2.8.1)
|
31
31
|
rexml (3.2.5)
|
32
|
-
roo (2.
|
32
|
+
roo (2.8.3)
|
33
33
|
nokogiri (~> 1)
|
34
34
|
rubyzip (>= 1.3.0, < 3.0.0)
|
35
35
|
rspec (3.11.0)
|
@@ -72,4 +72,4 @@ DEPENDENCIES
|
|
72
72
|
rubocop (~> 1.21)
|
73
73
|
|
74
74
|
BUNDLED WITH
|
75
|
-
2.
|
75
|
+
2.3.8
|
@@ -70,13 +70,17 @@ module NtqExcelsior
|
|
70
70
|
rescue Roo::HeaderRowNotFoundError => e
|
71
71
|
missing_headers = []
|
72
72
|
|
73
|
-
e.message.
|
73
|
+
e.message.delete_prefix('[').delete_suffix(']').split(",").map(&:strip).each do |header_missing|
|
74
74
|
header_missing_regex = transform_header_to_regexp(header_missing, true)
|
75
75
|
header_found = @required_columns.values.find do |column|
|
76
76
|
transform_header_to_regexp(get_column_header(column)) == header_missing_regex
|
77
77
|
end
|
78
78
|
if header_found && header_found.is_a?(Hash)
|
79
|
-
|
79
|
+
if header_found[:header].is_a?(String)
|
80
|
+
missing_headers << header_found[:header]
|
81
|
+
else
|
82
|
+
missing_headers << (header_found[:humanized_header] || header_missing)
|
83
|
+
end
|
80
84
|
elsif header_found&.is_a?(String)
|
81
85
|
missing_headers << header_found
|
82
86
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ntq_excelsior
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: caxlsx
|