csv_step_importer 0.3.0 → 0.3.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: de633f74f0d982cd785f8872a3a141ae8aa7877b3fe3994ddc7d57cc61e30898
4
- data.tar.gz: 80fb26d62fb8e44e3828c20d9174e6141cd8adc6af5c7c32a85612157382d4da
3
+ metadata.gz: ec7251ef8072cca79a680527151dc2f4a1660a99be40284aeec178a0d60efb64
4
+ data.tar.gz: 560b7c75e61b67b27fca2f3cb3c4074c4c6899ae853e1c3fb97d1201135f7f4d
5
5
  SHA512:
6
- metadata.gz: 69b8c793ef935985296b8916e373019863f7117ea08b577ca1519c2ef4722c9828b75d8f27a343be7833706a5bd96175831cf159a3a6041ada62052ee4714f35
7
- data.tar.gz: 1e14c5bf9b64f89d125b2cdc61d49fc2a2d3b6f9aff47963e5903a2cd1e0683712786cf5adcf1456d508737497fc4bea95371bbd0e8afe842ed581b04d486873
6
+ metadata.gz: e76e8585b7ddae0285cc70c16b6428d31a33f7dd8f820641d72396310a296f0f9dffb8be7eed2623e730ff02832663ffb862a647963214a0933720fc1d981c80
7
+ data.tar.gz: 5ccef6b27d06d85a02078ffc0abc84cf8c831853bb19422fcda85d8b6844b21b415ca02b2e22ef0f6898a4b519465a1d9046205d259794d4a5dac8d9fb13fc10
@@ -5,7 +5,7 @@ module CSVStepImporter
5
5
  class Importer < CSVStepImporter::Node
6
6
  attr_accessor :dao_values
7
7
 
8
- validate :validate_updatable_columns
8
+ validate :validate_updatable_columns, unless: -> { updatable_columns.any? { |column| column.is_a?(Hash) } }
9
9
 
10
10
  delegate :model_class, to: :parent
11
11
  delegate :columns, to: :parent
@@ -33,7 +33,7 @@ module CSVStepImporter
33
33
  return unless errors.empty?
34
34
 
35
35
  if (updatable_columns - columns).present?
36
- errors[:updatable_columns] << "updatedable_columns must be subset of columns"
36
+ errors[:updatable_columns] << "updatable_columns must be subset of columns"
37
37
  end
38
38
  end
39
39
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CSVStepImporter
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csv_step_importer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian-Manuel Butzke