csv-importer 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/csv_importer/header.rb +3 -0
- data/lib/csv_importer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48a0833adc98a3eb391c5f8f5dfcbf17e18d2b2b67c30ac6ce61ac10c75f4e65
|
4
|
+
data.tar.gz: 35af734114d7edc62208492860340747696ede74b26c37af8f69abb8cb3664db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e39e5ae5ba02cd31d77972f452fded7fc7584bacac159a6e0a9bd305bb8f3e597b843af2006ce7e64e29de7b70fec7015ca485bdfe0f562ae8727150a682f4bb
|
7
|
+
data.tar.gz: bce7c77c6d159788228bfbc6da9920bbbf810344d1075113e57edce647288da907a0d7c8358710b1729be5463d85492a5ce63be1299eaf519e0fb8a04c691a6b
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [0.8.2] - 2022-08-02
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
|
9
|
+
* Handle Invisible Chars in headers. [#107][] by [@tracyloisel][]
|
10
|
+
|
5
11
|
## [0.8.1] - 2021-02-21
|
6
12
|
|
7
13
|
* Rails 6.2 compability. [#99][] by [@stevenou][]
|
@@ -207,6 +213,7 @@ report object instead of raising an exception.
|
|
207
213
|
[#88]: https://github.com/pcreux/csv-importer/issues/88
|
208
214
|
[#93]: https://github.com/pcreux/csv-importer/issues/93
|
209
215
|
[#99]: https://github.com/pcreux/csv-importer/issues/99
|
216
|
+
[#107]: https://github.com/pcreux/csv-importer/issues/107
|
210
217
|
[@brain-geek]: https://github.com/brain-geek
|
211
218
|
[@danielweinmann]: https://github.com/danielweinmann
|
212
219
|
[@egg-chicken]: https://github.com/egg-chicken
|
@@ -219,4 +226,5 @@ report object instead of raising an exception.
|
|
219
226
|
[@pnomolos]: https://github.com/pnomolos
|
220
227
|
[@shvetsovdm]: https://github.com/shvetsovdm
|
221
228
|
[@stas]: https://github.com/stas
|
222
|
-
[@stevenou]: https://github.com/stevenou
|
229
|
+
[@stevenou]: https://github.com/stevenou
|
230
|
+
[@tracyloisel]: https://github.com/tracyloisel
|
data/lib/csv_importer/header.rb
CHANGED
@@ -9,6 +9,9 @@ module CSVImporter
|
|
9
9
|
|
10
10
|
def columns
|
11
11
|
column_names.map do |column_name|
|
12
|
+
# ensure column name escapes invisible characters
|
13
|
+
column_name = column_name.gsub(/[^[:print:]]/, '')
|
14
|
+
|
12
15
|
Column.new(
|
13
16
|
name: column_name,
|
14
17
|
definition: find_column_definition(column_name)
|
data/lib/csv_importer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv-importer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philippe Creux
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
- !ruby/object:Gem::Version
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
|
-
rubygems_version: 3.
|
163
|
+
rubygems_version: 3.1.6
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: CSV Import for humans
|