csv-importer 0.8.0 → 0.8.1

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: 803f33e5d2db4d5331bb2f6ef1c5fd6cc9ea19d1d8350e1c16a2041f2ac2176c
4
- data.tar.gz: 822e5caa1ae8d3e73909fcf42a9e57e6cff00dc6f2f2bb900b25e010bed72f19
3
+ metadata.gz: fa181c8425255dfe4e9a9fe01fc6c8ee3bd312e701e835999893ef4e9d379de5
4
+ data.tar.gz: b2a627e75724210a76fae4fd47eefd4a853006fec1f09d955c3c11d7c2a66120
5
5
  SHA512:
6
- metadata.gz: 0edf3c998a6b506a4778d0e36fddc828339cf8900653de0b41494489e4de57358df23a34ed30ad03f8583837ec0ca9c29d4166982ab80e17018481c00baad84d
7
- data.tar.gz: c11177ab4e4fb02751a8e1be12ded7c41360bd62f2f72156c75b8a90819d47f861fbff94b1ed1c8fa29940c5db4484ccb15341c8baaf2bfae256234fb2183c35
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
@@ -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
  ]
@@ -1,3 +1,3 @@
1
1
  module CSVImporter
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
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.0
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: 2020-09-03 00:00:00.000000000 Z
11
+ date: 2021-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus