uc3-dmp-id 0.0.83 → 0.0.85

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: a77779d6dd23f1c3d3cb8271e4623f584590fba3a86f233be7cb2e421cdc5320
4
- data.tar.gz: 8d43e6f5e5fc7c1612133c4a2d8f95dc7d6005bab3aca577cc1373fcf33af1fb
3
+ metadata.gz: b47110c86a675c5b8878c766fd1fe70e37dcd7b0a8a304d2f75e3650aa8aa2ca
4
+ data.tar.gz: '08581767b67dccff46403fb18796996a77ade8dcde354cbc7551e8dc691d69c0'
5
5
  SHA512:
6
- metadata.gz: 18c8561f3dec28a96bdc0ea321b819d6b67f72c755a1828476adad82444cba992ffd928191e9161e7b9c1ae1f1b1b71d353e3c05548f75fcf6dcc951941078e8
7
- data.tar.gz: 1eb10265cc9fa080aa0f81550446ef22f5fd3f4907c1c0ffee82a9400d74717c5ed3603218b1bf76eccab2c1d0ff56cc51a11c487096c1676af07f102225b571
6
+ metadata.gz: 451bad7555d0ef7dc19bfa8bd84e7f801bb3af3e849e07e96d8223f5bf312593a668fd3221883f75d8efdb9b2a98eece672f878f7d44fbe9d1e142e41ce3c003
7
+ data.tar.gz: d623274dcc3a0b7e9dc127f0203beda16f5c4cda26a8d035e3ec7a38243b5eaf660f5000d2bef5825b00fd2a793003b55c2f38e36ad2a015e74ab0f82d797b7a
@@ -14,11 +14,6 @@ module Uc3DmpId
14
14
 
15
15
  dmp = Helper.parse_json(json: json)
16
16
  p_key = Helper.append_pk_prefix(p_key: p_key)
17
- errs = _updateable?(provenance: provenance, p_key: p_key, json: dmp)
18
-
19
- puts "Updateable? #{errs}"
20
-
21
- raise UpdaterError, errs if errs.is_a?(Array) && errs.any?
22
17
 
23
18
  # Add the DMPHub specific attributes
24
19
  annotated = Helper.annotate_dmp(provenance: provenance, json: dmp['dmp'], p_key: p_key)
@@ -29,6 +24,12 @@ puts annotated
29
24
  # fetch the existing latest version of the DMP ID
30
25
  client = Uc3DmpDynamo::Client.new(debug: debug)
31
26
  existing = Finder.by_pk(p_key: p_key, client: client, debug: debug)
27
+
28
+ puts 'EXISTING:'
29
+ puts existing
30
+
31
+ errs = _updateable?(provenance: provenance, p_key: p_key, json: existing)
32
+ raise UpdaterError, errs if errs.is_a?(Array) && errs.any?
32
33
  # Don't continue if nothing has changed!
33
34
  raise UpdaterError, MSG_NO_CHANGE if Helper.eql?(dmp_a: existing, dmp_b: annotated)
34
35
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.83'
4
+ VERSION = '0.0.85'
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.83
4
+ version: 0.0.85
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