imp_exp 1.2.0 → 1.2.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: 94c393f1951d6c5ce96e649b5ddebeb783e4602d136808852826903bdc656374
4
- data.tar.gz: e4ddda971aeaa6f46fce2fa376dfd904b7e3f1fc43a289aef5d6980ec6520e0e
3
+ metadata.gz: 5f28ed3841e2f2cef56566da34d4994ba911680f3524d5568cb0a2211dab2d0c
4
+ data.tar.gz: e7f954cf9859c05aabe70b21c0d8cb6db9623e96e0ba269bb348b39f0bc2905b
5
5
  SHA512:
6
- metadata.gz: 0d192022028986ba40750b6abe36b480c0a7167657b71cb2a2528edc4760bfaa61f1a543a73a6893cdf1fd916bfd70ccc2d8aee6f5cbaa95107d9801a79fc2be
7
- data.tar.gz: 8ffdaf906fa00dbc63613d18334aef5f5c89007e892dcc17669f35efcbe7cea9696fd3d43696e2f8435e1ee2fe93f804c4567d5f0ea3444bf6fc36109ec45f9f
6
+ metadata.gz: 96e48f2adb43f7eeb7a49d5a367c9eb4aeaf5f2ac0fd6eb377fd092521b0ce4bc1a7eac3d783236668297d6889508251cacb9684accbcdb24d8878667affcf62
7
+ data.tar.gz: 84bdf4afd2c4a37285347394523ac0354bfd791f21ed661727bc03737bc36601df9f3f14c6b58eda374fc7bf563e200b4a4548eb6e7c0f421d630d7a79b172da
@@ -42,6 +42,8 @@ module ImpExp
42
42
  end
43
43
 
44
44
  { format_errors: format_errors, data_validation_errors: data_validation_errors }.merge(import_result)
45
+ rescue Xsv::DuplicateHeaders
46
+ { format_errors: { name: :duplicated_headers } }
45
47
  end
46
48
 
47
49
  private
@@ -1,6 +1,7 @@
1
1
  en:
2
2
  imp_exp:
3
3
  importer:
4
+ duplicated_headers: "A duplicate header in a sheet of the import file prevents the file from being imported"
4
5
  invalid_columns: "The %{model_name} sheet does not contain the expected columns. Expected columns: %{expected_columns} Columns in the file: %{in_file_columns}."
5
6
  invalid_sheets: "The file does not contain the expected sheets. Expected sheets: %{expected_sheets} Sheets in the file: %{in_file_sheets}."
6
7
  record_not_found: "%{model_name} with %{conditions} conditions has not been found."
@@ -1,6 +1,7 @@
1
1
  fr:
2
2
  imp_exp:
3
3
  importer:
4
+ duplicated_headers: "Un doublon d'en-tête de colonne dans une feuille du fichier d'import empêche l'import de fonctionner."
4
5
  invalid_columns: "La feuille %{model_name} ne contient pas les colonnes attendues. Colonnes attendues : %{expected_columns}. Colonnes dans le fichier : %{in_file_columns}."
5
6
  invalid_sheets: "Le fichier ne contient pas les feuilles attendues. Feuilles attendues : %{expected_sheets}. Feuilles dans le fichier : %{in_file_sheets}."
6
7
  record_not_found: "%{model_name} avec les conditions %{conditions} n'a pas été trouvé."
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ImpExp
4
- VERSION = "1.2.0"
4
+ VERSION = "1.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imp_exp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dev team Nerya