uc3-dmp-id 0.0.101 → 0.0.102

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: 9e0229f8a4684d78c921445d06df169216d6694a88264f8f1be8db079c4939f2
4
- data.tar.gz: 991ec4969b516f29a5302b0700d73be81d15fc7aedfcbdd41e3bb590a399953a
3
+ metadata.gz: 259cd78bdceb8b572adafe27bf79e17a797d94e306d92cbfbaeaf4595f63f714
4
+ data.tar.gz: 4e33a878cdb28d1d40f12f34c36e62dbd7da6e40eb7e06d39564da20d621e052
5
5
  SHA512:
6
- metadata.gz: 287a1c8dac5441229f937dd7e08ace46d8cf0395c4fbdbc43a874f95ff6d1baa0e782b6a98d68c45334ea0eb82390c6c84ae631231cfa8966a04ae1e0a4f4e2c
7
- data.tar.gz: ecb4bc1d8a8d989cda2b44808f8bfb8f2b883d506884c2fe83b662f7493141fcfa32909f64fed8822d71eec01bf710d41cea0fdb930ba89adf5158dc5a274dff
6
+ metadata.gz: 779fbbf1623506a0a0cfef7c85a3a9d0e3297cc015ef2de38f06e36fd93a501fd4a6ebfc499dc615fb8242471183c6526b74fba18de39ed10af7fe95b35b92f1
7
+ data.tar.gz: 9a890097d0cab40a0eab7d752b2eca9893e7a473dfd9359b0a1161e67bb4be48f178ba55bbec1b3f2b4cd14f12926621d71c0706313bef1fa5f849812d010103
@@ -21,7 +21,7 @@ module Uc3DmpId
21
21
  # Fetch the latest version of the DMP ID
22
22
  client = Uc3DmpDynamo::Client.new
23
23
  latest_version = Finder.by_pk(p_key: p_key, client: client, logger: logger, cleanse: false)
24
- latest_version = latest_version.nil? ? {} : latest_version.fetch('dmp', {})
24
+ latest_version = latest_version['dmp'].nil? ? latest_version : latest_version.fetch('dmp', {})
25
25
  logger.debug(message: "Latest version for PK #{p_key}", details: latest_version) if logger.respond_to?(:debug)
26
26
 
27
27
  # Verify that the DMP ID is updateable with the info passed in
@@ -32,6 +32,9 @@ module Uc3DmpId
32
32
  raise UpdaterError, MSG_NO_CHANGE if Helper.eql?(dmp_a: latest_version, dmp_b: mods)
33
33
 
34
34
  # Version the DMP ID record (if applicable).
35
+
36
+ puts "OWNER: #{owner}, DMPHub PROV: #{latest_version['dmphub_provenance_id']}, DMP BURIED: #{latest_version.fetch('dmp', {})['dmphub_provenance_id']}"
37
+
35
38
  owner = latest_version['dmphub_provenance_id']
36
39
  updater = provenance['PK']
37
40
  version = Versioner.generate_version(client: client, latest_version: latest_version, owner: owner, updater: updater,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.101'
4
+ VERSION = '0.0.102'
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.101
4
+ version: 0.0.102
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley