uc3-dmp-id 0.0.70 → 0.0.72

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0ca5545af2c686ec3c72c6d87ee6035f2c32d15e4e02e88a2242405d989c723
4
- data.tar.gz: dc8abcfa7e6f83b0f4c65701595d57f6dfa8a3ba59049b3a90814eaa08036c35
3
+ metadata.gz: 6d6c9c1bda7d28c8edac4bbf404893ef184ca68b7158a0a047bfbfbcab67c49a
4
+ data.tar.gz: 37c9807b5b5af8c767aba6a73f73766d04eebddc5eb5955d6c37758be08cd941
5
5
  SHA512:
6
- metadata.gz: f1396221ec09ad597c60b0227263589ef4ab5dbec2a0522ccfd264d87d4c7125bb69d0953be1faa3a3bb1cf0e9ad0a10472d1933501edb7d54a8fdd137017d7c
7
- data.tar.gz: 00b202a1a166b2ad2a334503991e20d470e0ed445e5635a199c244c5622e2d3f8bbbf13da07989b2958625904f13c3fd067a96ff5eaec6d304630b723f5886f6
6
+ metadata.gz: 4f45ce1f5588c1f2a293b9c0a3ad6c8916bef9c51e28762b7342488cd4b9687b5687d5fbc570e552b4c79e6e0e68089aceb9e543ae074a419d29fc07d9a2cc35
7
+ data.tar.gz: 105f77683115f91bbb7427f96eb226b483ea054172c0bde0717339b2b7c2e0f02d2089105223ad255448045f22372d5c8a0563030b943a0517684f0763626b12
@@ -37,7 +37,7 @@ module Uc3DmpId
37
37
  # return by_provenance_identifier(json: json, client: client, debug: debug) if p_key.nil?
38
38
 
39
39
  # find_by_PK
40
- by_pk(p_key: p_key, s_key: json['SK'], client: client, debug: debug)
40
+ p_key.nil? ? nil : by_pk(p_key: p_key, s_key: json['SK'], client: client, debug: debug)
41
41
  end
42
42
 
43
43
  # Find the DMP by its PK and SK
@@ -46,8 +46,6 @@ module Uc3DmpId
46
46
  # fetch the existing latest version of the DMP ID
47
47
  client = Uc3DmpDynamo::Client.new(debug: debug)
48
48
  dmp = Finder.by_pk(p_key: p_key, client: client, debug: debug)
49
- # Don't continue if DMP ID could not be found or the contact has no identifier (should be impossible)
50
- raise UpdaterError, MSG_DMP_NOT_FOUND if dmp.nil? || owner_org.nil?
51
49
 
52
50
  errs = _updateable?(provenance: provenance, p_key: p_key, json: dmp['dmp'])
53
51
  raise UpdaterError, errs if errs.is_a?(Array) && errs.any?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.70'
4
+ VERSION = '0.0.72'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.70
4
+ version: 0.0.72
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-29 00:00:00.000000000 Z
11
+ date: 2023-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json