uc3-dmp-id 0.0.59 → 0.0.60

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: a7f1d4153e4af1ce9ef49c831f2c65d995e177100def3bfc473c10e25647cbf4
4
- data.tar.gz: 18d148667df1d518ed423d087d9732c28142691a77ecb74a42e54de2ad544615
3
+ metadata.gz: fc2cccff208ffef601a91dc92d6cd2e3ed5b517fd47e09254ff7fea2572ea928
4
+ data.tar.gz: 32ed9cdab64dcc03154eacb748ad3fe9bde7ee61d4080874092381c3ffc59c09
5
5
  SHA512:
6
- metadata.gz: f698bfcb7fff04d14481a5a7e4e4c500fe76e88bdbfe13f1791111fc0c0bffa26751786d9ee647774fc1c6a1a1b6675daa27d158c32479bdc387500b535a2b47
7
- data.tar.gz: bc0e02218ed69278a5fa3b3a479b396d8b344505809cd4a4a2938bbe4afde9e1db80ec0776e0bac03dd794d04169b52e8ba078534b00d11ed64b387d2a541503
6
+ metadata.gz: c65520e657194a50a53c6fa88d5e5e43ae471c8d7ac5a56b5da1d3b16bbf0932b90eb42f01674141afbd3577ac071e02c77e8accb7d0e3c3eb150e8344a8bca7
7
+ data.tar.gz: 5ab9a028be14f33f10031ef3530d78e2f9d09fb496c9a8225f664fa307de50b8a3fb2fbb1615bc4e0226a3197273a440b3aa00bdf955e25b92dc117716cc905f
@@ -53,18 +53,16 @@ module Uc3DmpId
53
53
  raise UpdaterError, errs if errs.is_a?(Array) && errs.any?
54
54
 
55
55
  # Add the DMPHub specific attributes
56
- owner_org = dmp['dmp']['dmphub_owner_org']
57
- annotated = Helper.annotate_dmp_json(provenance: provenance, owner_org: owner_org, p_key: p_key, json: dmp['dmp'])
58
- annotated['dmproadmap_related_identifiers'] = [] if annotated['dmproadmap_related_identifiers'].nil?
59
- annotated['dmproadmap_related_identifiers'] << {
56
+ dmp['dmp']['dmproadmap_related_identifiers'] = [] if dmp['dmp']['dmproadmap_related_identifiers'].nil?
57
+ dmp['dmp']['dmproadmap_related_identifiers'] << {
60
58
  descriptor: 'is_metadata_for', work_type: 'output_management_plan', type: 'url', identifier: url
61
59
  }
62
60
 
63
61
  puts "Attached:"
64
- puts annotated
62
+ puts dmp
65
63
 
66
64
  # Save the changes as the new latest version
67
- resp = client.put_item(json: annotated, debug: debug)
65
+ resp = client.put_item(json: dmp['dmp'], debug: debug)
68
66
  raise UpdaterError, MSG_DMP_UNABLE_TO_VERSION if resp.nil?
69
67
 
70
68
  true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.59'
4
+ VERSION = '0.0.60'
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.59
4
+ version: 0.0.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley