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 +4 -4
- data/lib/uc3-dmp-id/updater.rb +5 -1
- 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: 10b352f851836dba94128f686ead56e57f9b4ebdbd60d2fec07875c168ceab02
|
4
|
+
data.tar.gz: 3ebc392cacd0ffff66f0c482463975244021a2b11c046226c27bde091cab1817
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c49e77cf0c1d2d4436e6396b98e4cc4b7681d3345925dc27690e81371104aac3d1669e1fee6570c494dd8ec871824884522fb76d11242fd45f2f8fa27478e3b2
|
7
|
+
data.tar.gz: 321d0ab84681502923e2bb39d8d1e50ef8b3ad9196d3e98e80eccb2a284d8d202fd596990eacda27ef8b4207e7d1a15af2fd947b71b55dad58bbb4b4771ed08f
|
data/lib/uc3-dmp-id/updater.rb
CHANGED
@@ -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.
|
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!
|
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.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-
|
11
|
+
date: 2023-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|