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 +4 -4
- data/lib/uc3-dmp-id/updater.rb +6 -5
- data/lib/uc3-dmp-id/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b47110c86a675c5b8878c766fd1fe70e37dcd7b0a8a304d2f75e3650aa8aa2ca
|
4
|
+
data.tar.gz: '08581767b67dccff46403fb18796996a77ade8dcde354cbc7551e8dc691d69c0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 451bad7555d0ef7dc19bfa8bd84e7f801bb3af3e849e07e96d8223f5bf312593a668fd3221883f75d8efdb9b2a98eece672f878f7d44fbe9d1e142e41ce3c003
|
7
|
+
data.tar.gz: d623274dcc3a0b7e9dc127f0203beda16f5c4cda26a8d035e3ec7a38243b5eaf660f5000d2bef5825b00fd2a793003b55c2f38e36ad2a015e74ab0f82d797b7a
|
data/lib/uc3-dmp-id/updater.rb
CHANGED
@@ -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
|
|
data/lib/uc3-dmp-id/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|