uc3-dmp-id 0.0.95 → 0.0.96

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: 66da5763a8775630aa772cda55e95ea3a851b0f64e28d0c37c35e2c31d96d57e
4
- data.tar.gz: '08ad0dcb0490ac289b674fa9d8a8fdf704a1f9a50020d42fa10d208a34f86771'
3
+ metadata.gz: c6623f79604248f9a0f7ea88837a0d75a85fb4b30766352bb68a6c5de08125cf
4
+ data.tar.gz: 6e51e71740077defbd9b456fa5557532fc143484ac75de58510cc25ac96d073b
5
5
  SHA512:
6
- metadata.gz: 2a2e0c1288b03cb7457f7bb750a3d44a673059640f2d28c4be8f33be52e2fc2fe10c1c8e4e6fde14f6e478111301236271945312a3b2d3c6b171597dfad035bd
7
- data.tar.gz: 86af35a5e87a1bf29b814d0843e06199c351c43605d0cfc84cd2f26728ebcfaee3511766243a9d7c19247cb1be6d9b47873af8cfdb5c1a1650956e45bb6e6d85
6
+ metadata.gz: 254631a72b6bae0629df5f6b7606a9d0b2323071de9b573a9712225b73a3c2a1a514236edad355b6fd9241f3267397ac275b47e92759025b4bd5f41cb21bacdf
7
+ data.tar.gz: 8274ce2a62b81621cef098f70d8f62c10a3a56b09bb8b7832a4dd2fa16aa09af09ab9cc2d343c2a672ca6f8d70a6766a27aac0710d32df77221551ba694116bf
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.95'
4
+ VERSION = '0.0.96'
5
5
  end
@@ -36,16 +36,16 @@ module Uc3DmpId
36
36
  puts "Provenance: #{provenance}, PK: #{p_key}"
37
37
  puts dmp
38
38
 
39
- return nil unless p_key.is_a?(String) && !p_key.strip.empty? && _versionable?(p_key: p_key, dmp: latest_version)
39
+ return nil unless p_key.is_a?(String) && !p_key.strip.empty? && _versionable?(p_key: p_key, dmp: latest_version['dmp'])
40
40
 
41
41
  client = Uc3DmpDynamo::Client.new if client.nil?
42
42
 
43
43
  owner = latest_version['dmphub_provenance_id']
44
44
  updater = provenance['PK']
45
- prior = _generate_version(client: client, latest_version: latest_version, owner: owner, updater: updater)
45
+ prior = _generate_version(client: client, latest_version: latest_version['dmp'], owner: owner, updater: updater)
46
46
  return nil if prior.nil?
47
47
 
48
- args = { owner: owner, updater: updater, base: prior, mods: dmp, logger: logger }
48
+ args = { owner: owner, updater: updater, base: prior, mods: dmp['dmp'], logger: logger }
49
49
  logger.debug(message: "#{SOURCE} record prior to splicing", details: dmp) if logger.respond_to?(:debug)
50
50
 
51
51
  # If the system of provenance is making the change then just use the
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.95
4
+ version: 0.0.96
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley