uc3-dmp-id 0.0.58 → 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: 89e288b9f1ca8dbbdc9696732303aa480fcfa003a3cbb9bdb398abf736fb146f
4
- data.tar.gz: 8a96ebca3f45a06f498b2a2af3fa9a5f0831dff5e5c48049b64109308a0c8b5f
3
+ metadata.gz: fc2cccff208ffef601a91dc92d6cd2e3ed5b517fd47e09254ff7fea2572ea928
4
+ data.tar.gz: 32ed9cdab64dcc03154eacb748ad3fe9bde7ee61d4080874092381c3ffc59c09
5
5
  SHA512:
6
- metadata.gz: 5e601be486758f86c56e430ef1d3b154c34f775b0b8ae345e78eb37e8ef8976532ce885fa403b51d0e91d4cdd080bf06be388bade02e465cd2526a4a4ade2525
7
- data.tar.gz: cc2b2a727c0fe43df07931072df6a95a0aff7b32bed1dc9924a27d3e24a8977111d212c532028d1b2724200bcd482052c936235e0ab8443576c95101c15eb4e2
6
+ metadata.gz: c65520e657194a50a53c6fa88d5e5e43ae471c8d7ac5a56b5da1d3b16bbf0932b90eb42f01674141afbd3577ac071e02c77e8accb7d0e3c3eb150e8344a8bca7
7
+ data.tar.gz: 5ab9a028be14f33f10031ef3530d78e2f9d09fb496c9a8225f664fa307de50b8a3fb2fbb1615bc4e0226a3197273a440b3aa00bdf955e25b92dc117716cc905f
@@ -53,16 +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 << { descriptor: 'is_metadata_for', work_type: 'output_management_plan', type: 'url', identifier: url }
56
+ dmp['dmp']['dmproadmap_related_identifiers'] = [] if dmp['dmp']['dmproadmap_related_identifiers'].nil?
57
+ dmp['dmp']['dmproadmap_related_identifiers'] << {
58
+ descriptor: 'is_metadata_for', work_type: 'output_management_plan', type: 'url', identifier: url
59
+ }
60
60
 
61
61
  puts "Attached:"
62
- puts annotated
62
+ puts dmp
63
63
 
64
64
  # Save the changes as the new latest version
65
- resp = client.put_item(json: annotated, debug: debug)
65
+ resp = client.put_item(json: dmp['dmp'], debug: debug)
66
66
  raise UpdaterError, MSG_DMP_UNABLE_TO_VERSION if resp.nil?
67
67
 
68
68
  true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.58'
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.58
4
+ version: 0.0.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley