csv-importer 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa181c8425255dfe4e9a9fe01fc6c8ee3bd312e701e835999893ef4e9d379de5
4
- data.tar.gz: b2a627e75724210a76fae4fd47eefd4a853006fec1f09d955c3c11d7c2a66120
3
+ metadata.gz: 48a0833adc98a3eb391c5f8f5dfcbf17e18d2b2b67c30ac6ce61ac10c75f4e65
4
+ data.tar.gz: 35af734114d7edc62208492860340747696ede74b26c37af8f69abb8cb3664db
5
5
  SHA512:
6
- metadata.gz: 2b0cfce7e92e5036ef3cf26c4b874d95b2f531b96a46f38c275d0156206628b9b223b4900d13cd809e30611f8bd883c54c1c3f76075eb247c9783c8da9063bc1
7
- data.tar.gz: 1fbc086129f7b54be4ec7036523d56ab799e8efaecb843d2fb22a115d6e60c5a1fbc02c0a6ca5b945c22cd453b24b9b22b63de2259cbb95dfeafc2342c74d2df
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
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module CSVImporter
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
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.1
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: 2021-02-22 00:00:00.000000000 Z
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.0.3
163
+ rubygems_version: 3.1.6
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: CSV Import for humans