csv-importer 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/csv_importer/row.rb +3 -3
- data/lib/csv_importer/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: fa181c8425255dfe4e9a9fe01fc6c8ee3bd312e701e835999893ef4e9d379de5
|
4
|
+
data.tar.gz: b2a627e75724210a76fae4fd47eefd4a853006fec1f09d955c3c11d7c2a66120
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b0cfce7e92e5036ef3cf26c4b874d95b2f531b96a46f38c275d0156206628b9b223b4900d13cd809e30611f8bd883c54c1c3f76075eb247c9783c8da9063bc1
|
7
|
+
data.tar.gz: 1fbc086129f7b54be4ec7036523d56ab799e8efaecb843d2fb22a115d6e60c5a1fbc02c0a6ca5b945c22cd453b24b9b22b63de2259cbb95dfeafc2342c74d2df
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [0.8.1] - 2021-02-21
|
6
|
+
|
7
|
+
* Rails 6.2 compability. [#99][] by [@stevenou][]
|
8
|
+
|
5
9
|
## [0.8.0] - 2020-09-02
|
6
10
|
|
7
11
|
### Fixed
|
@@ -202,6 +206,7 @@ report object instead of raising an exception.
|
|
202
206
|
[#85]: https://github.com/pcreux/csv-importer/issues/85
|
203
207
|
[#88]: https://github.com/pcreux/csv-importer/issues/88
|
204
208
|
[#93]: https://github.com/pcreux/csv-importer/issues/93
|
209
|
+
[#99]: https://github.com/pcreux/csv-importer/issues/99
|
205
210
|
[@brain-geek]: https://github.com/brain-geek
|
206
211
|
[@danielweinmann]: https://github.com/danielweinmann
|
207
212
|
[@egg-chicken]: https://github.com/egg-chicken
|
@@ -213,4 +218,5 @@ report object instead of raising an exception.
|
|
213
218
|
[@perezperret]: https://github.com/perezperret
|
214
219
|
[@pnomolos]: https://github.com/pnomolos
|
215
220
|
[@shvetsovdm]: https://github.com/shvetsovdm
|
216
|
-
[@stas]: https://github.com/stas
|
221
|
+
[@stas]: https://github.com/stas
|
222
|
+
[@stevenou]: https://github.com/stevenou
|
data/lib/csv_importer/row.rb
CHANGED
@@ -77,11 +77,11 @@ module CSVImporter
|
|
77
77
|
# Error from the model mapped back to the CSV header if we can
|
78
78
|
def errors
|
79
79
|
Hash[
|
80
|
-
model.errors.map do |attribute, errors|
|
80
|
+
model.errors.to_hash.map do |attribute, errors|
|
81
81
|
if column_name = header.column_name_for_model_attribute(attribute)
|
82
|
-
[column_name, errors]
|
82
|
+
[column_name, errors.last]
|
83
83
|
else
|
84
|
-
[attribute, errors]
|
84
|
+
[attribute, errors.last]
|
85
85
|
end
|
86
86
|
end
|
87
87
|
]
|
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.1
|
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: 2021-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|