uc3-dmp-id 0.0.84 → 0.0.86

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: 7f2e3b8a5707e78a6d60993c8abc1605b5562ec1e2d0979b5d2ae31fff86c410
4
- data.tar.gz: ac67878bb4ab3ba29733cc45b0f96b047bd81ac55f15a1b5a642648e017f1c50
3
+ metadata.gz: 10b352f851836dba94128f686ead56e57f9b4ebdbd60d2fec07875c168ceab02
4
+ data.tar.gz: 3ebc392cacd0ffff66f0c482463975244021a2b11c046226c27bde091cab1817
5
5
  SHA512:
6
- metadata.gz: 11d4c6faf29896ab3f76984bb90acfa00ae399cfcd5f97ac2272d2ef475345ec3453422d67f0cfc6f8c80bc39fb5cc41d1e38ba7c7196da809c21837f9ff2131
7
- data.tar.gz: 30dba39ba29e5c9518e208cbfd0afec2ac7fbfc81ccb0d6c2868baf679a21ee34a9dd37a57d589230db02f073705a7ddcb28c2ecc52333d9524e9d2aadd4c624
6
+ metadata.gz: c49e77cf0c1d2d4436e6396b98e4cc4b7681d3345925dc27690e81371104aac3d1669e1fee6570c494dd8ec871824884522fb76d11242fd45f2f8fa27478e3b2
7
+ data.tar.gz: 321d0ab84681502923e2bb39d8d1e50ef8b3ad9196d3e98e80eccb2a284d8d202fd596990eacda27ef8b4207e7d1a15af2fd947b71b55dad58bbb4b4771ed08f
@@ -16,7 +16,7 @@ module Uc3DmpId
16
16
  p_key = Helper.append_pk_prefix(p_key: p_key)
17
17
 
18
18
  # Add the DMPHub specific attributes
19
- annotated = Helper.annotate_dmp(provenance: provenance, json: dmp['dmp'], p_key: p_key)
19
+ annotated = Helper.annotate_dmp_json(provenance: provenance, p_key: p_key, json: dmp['dmp'])
20
20
 
21
21
  puts 'Annotated:'
22
22
  puts annotated
@@ -24,6 +24,10 @@ puts annotated
24
24
  # fetch the existing latest version of the DMP ID
25
25
  client = Uc3DmpDynamo::Client.new(debug: debug)
26
26
  existing = Finder.by_pk(p_key: p_key, client: client, debug: debug)
27
+
28
+ puts 'EXISTING:'
29
+ puts existing
30
+
27
31
  errs = _updateable?(provenance: provenance, p_key: p_key, json: existing)
28
32
  raise UpdaterError, errs if errs.is_a?(Array) && errs.any?
29
33
  # Don't continue if nothing has changed!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.84'
4
+ VERSION = '0.0.86'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.84
4
+ version: 0.0.86
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-05 00:00:00.000000000 Z
11
+ date: 2023-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json