uc3-dmp-id 0.0.40 → 0.0.41

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: 16e0d5fad73a2b02661468888f39eb9931dcfa3a41d6f4b1c3c4b9caac5270b7
4
- data.tar.gz: a76046c80b46aaab3705af222eeca787d7f821766057c9d18982a9b64fb1b105
3
+ metadata.gz: a083adf1ce95bf86fe7775c5c76fa12758f90747502daa8a9f2140cc9b50743b
4
+ data.tar.gz: 3fdf9a0f471daa92bcd663892cb4b40f306be417fbab94a0a9bad6a65a600134
5
5
  SHA512:
6
- metadata.gz: 43bc65f4d35e2efea4e77e1cbea24ca4d15f9968a73a01cb3aac39c043ba42512422ec1481f97f9f7a57dc40145ef55b0a4db5371a45871730ff44897e6dc321
7
- data.tar.gz: bf07e780828b16f0cafea980538510c15a8b8c725afb19d4459d4428ab9d424fdd843493d65f4986a335e1c9b37a9c6381ce91fca593c24a78ff7885a017001d
6
+ metadata.gz: 4c7b1e2f15ee9408b07d42902025bfe99f9c8dbf533ad013289147fefe21f6c42ccdff322417ec98ee1473ee424339905d71429a3fb1f2dded7b9cf55d997864
7
+ data.tar.gz: 59175eb9fd83d0dea579e030db380ce7fb45a632edcc339739c0c57dd564dde03f93e5274974e3d3a28fd4f6a76172b1fccb6d10dd63d5d937e32ae32904f8e6
@@ -26,9 +26,11 @@ module Uc3DmpId
26
26
  raise CreatorError, MSG_NO_PROVENANCE_OWNER if provenance.nil? || owner_org.nil?
27
27
  raise CreatorError, MSG_NO_OWNER_ORG unless owner_org.is_a?(String) && !owner_org.strip.empty?
28
28
 
29
+ # TODO: Swap this out with the Finder search once the Dynamo indexes are working
29
30
  # Try to find it first and Fail if found
30
- result = Finder.by_json(json: json, debug: debug)
31
- raise CreatorError, Uc3DmpId::MSG_DMP_EXISTS if result.is_a?(Hash)
31
+ # result = Finder.by_json(json: json, debug: debug)
32
+ # raise CreatorError, Uc3DmpId::MSG_DMP_EXISTS if result.is_a?(Hash)
33
+ raise CreatorError, Uc3DmpId::MSG_DMP_EXISTS unless json['PK'].nil?
32
34
 
33
35
  p_key = _preregister_dmp_id(json: json, debug: debug)
34
36
  raise CreatorError, MSG_UNABLE_TO_MINT if p_key.nil?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.40'
4
+ VERSION = '0.0.41'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.40
4
+ version: 0.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley