darlingtonia 3.1.0 → 3.1.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: ee7ce1d03349bd1c624e7ad3bd3c12e92db474f77559444f15a36a34f444a8aa
4
- data.tar.gz: bbfcdc4b7b0cd0ac1b9cfc83e30cb03d19d626e8664a05a7be762d7ea3e721ec
3
+ metadata.gz: f65916a0536747279530beff22b393ca88d31d0ce16338799f3bc45631e864c2
4
+ data.tar.gz: be92962bfbd065747aea00b26d77fb79c8ba46655c367ddc74bcb5190e8bdb13
5
5
  SHA512:
6
- metadata.gz: bc8ca923806a61c2b99c2c8bd9d97942464a539afb637c3f4206ce02faf397d9bd1e893f65c89153816eeee7bb5c55a0e9a25f59820462bbf6665606504cb3c0
7
- data.tar.gz: 067ffa15cfccfb7f045e33f015f1e7dd3f07526214153e953aab1427723f9436a03e12ab1e927306c05004178f9e62260990d3ba639fd95ca761209a5e918163
6
+ metadata.gz: 2536967a3f2f3040638d12f08df770395ae70f4bc133fd65b247a14f824e5f1f4f06c88c2d5136a0de1a6cb8d4bb8b1712fc8a0142df025cec99565c366d1f01
7
+ data.tar.gz: fff32d8eae679a040dfc35ab234a829118291b6960f2e6ce48d8e92ab748372b58a44978f26d74e28e28838ffa67bb79e2ca90512ad9b9b461519a8d19e43bd4
@@ -73,6 +73,7 @@ module Darlingtonia
73
73
  def find_existing_record(record)
74
74
  return unless deduplication_field
75
75
  return unless record.respond_to?(deduplication_field)
76
+ return if record.mapper.send(deduplication_field).nil?
76
77
  return if record.mapper.send(deduplication_field).empty?
77
78
  existing_records = import_type.where("#{deduplication_field}": record.mapper.send(deduplication_field).to_s)
78
79
  raise "More than one record matches deduplication_field #{deduplication_field} with value #{record.mapper.send(deduplication_field)}" if existing_records.count > 1
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Darlingtonia
4
- VERSION = '3.1.0'
4
+ VERSION = '3.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: darlingtonia
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Data Curation Experts