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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf457474e835aa5716abbdf7004f795ca97d1796cf49c9528ca59b3a7b233d10
4
- data.tar.gz: 71af4c5b26604522ee93d68013f238095d3f086091ae34c6e97e32749bec42d8
3
+ metadata.gz: 6c3cb9fc73c0fa504c6688f4ee4c2da018b66af2234f083a10a1f4ee4811068a
4
+ data.tar.gz: abd746af68004464bf1557e0ecb7d1a428d446330017fd853b69ed7cf17af38d
5
5
  SHA512:
6
- metadata.gz: e07c0aba24f0369cfdfe20635b78a61f9a2a9eded12bf116e698cda59b69345d1ef5cbf94149f4e1810ab2cbd88174beba3f43f2eff34525d8674c9899eb8239
7
- data.tar.gz: f08ef0e18a77235445888759cb0d57c86d8885b215920960b75299978c1be91acf4602135eaa5d11e95a0cee5a72975658be1457a3b6916694154ea8c4412163
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.0)
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.10.0)
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.4.14
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.slice(1..-1).chop.split(",").map(&:strip).each do |header_missing|
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
- missing_headers << header_found[:header].is_a?(String) ? header_found[:header] : (header_found[:humanized_header] || header_missing)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NtqExcelsior
4
- VERSION = "1.2.0"
4
+ VERSION = "1.2.2"
5
5
  end
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.0
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-09-18 00:00:00.000000000 Z
11
+ date: 2023-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caxlsx