importance 0.2.13 → 0.2.15

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: 4d249f7c094038be61265fdf2c314b2e1529a5435a8bd5020f183da1b2edc8cd
4
- data.tar.gz: 0641fb6d0aa51a29fbb79e662f9b7162dcdb0a94d73a380d8e89ea941d2a3c8e
3
+ metadata.gz: 2b27d48f0b5cbd8c8bf380d1936581a5fe4bed00b3ed053d80db2f415faf0603
4
+ data.tar.gz: 663345d510f51c4ad259da648774c5c27a8b79ab8126724ec2823325f09fd571
5
5
  SHA512:
6
- metadata.gz: '0057938d6db6d95c1c736f7b732d9c24ab8dae028475ccc923fdcf30e883af23ac93e495c34a45f52b138e3deba5131103779b7515bd236ff791592e35b24abe'
7
- data.tar.gz: 4f322ff7cfc2f5fe97fe6dd3ed7ca36937e7db5ed776aadb03acd24a2c85d6d7182c8520d34b607160f2d088d0c4d07212f267a05f43682a69523a30a3759951
6
+ metadata.gz: a90a59814403247458f99dd657ce7be46c12902eee6044093259338a72be1cbadb2c7ea958a4821840eb4cdead664c80107fe2fb735db5ee8ff6227eb09375f7
7
+ data.tar.gz: 7260c006bce5a868bf30768ac24a97dc9e955d98f6856f874a02a82ffca168db5d9eccc1e659943e54048e8abacbc26e927c9c8429f25b213fd16f0ea07c4af9
@@ -73,7 +73,7 @@ module Importance
73
73
  @mappings = params[:mappings].permit!.to_h.map { |k, v| [ k.to_i, v ] }.to_h
74
74
 
75
75
  @importer.importer_attributes.each do |attribute|
76
- next if !attribute.options[:required]
76
+ next if attribute.options[:optional]
77
77
  next if @mappings.values.include?(attribute.key.to_s)
78
78
 
79
79
  flash[:alert] = t("importance.errors.missing_mapping", attribute: attribute.labels.first)
@@ -113,7 +113,7 @@ module Importance
113
113
  else
114
114
  redirect_to (session[:redirect_url] || main_app.root_path), notice: t("importance.success.import_completed")
115
115
  end
116
- rescue Importance::ImportException => e
116
+ rescue => e
117
117
  if @importer.error_callback
118
118
  instance_exec(e, &@importer.error_callback)
119
119
  end
@@ -1,3 +1,3 @@
1
1
  module Importance
2
- VERSION = "0.2.13"
2
+ VERSION = "0.2.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: importance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.13
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas_Skywalker
@@ -88,7 +88,6 @@ files:
88
88
  - lib/importance.rb
89
89
  - lib/importance/configuration.rb
90
90
  - lib/importance/engine.rb
91
- - lib/importance/import_exception.rb
92
91
  - lib/importance/version.rb
93
92
  - lib/tasks/importance_tasks.rake
94
93
  homepage: https://github.com/code-fabrik/importance
@@ -1,4 +0,0 @@
1
- module Importance
2
- class ImportException < StandardError
3
- end
4
- end