uc3-dmp-id 0.0.33 → 0.0.35
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/finder.rb +2 -2
- data/lib/uc3-dmp-id/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6deb6c2410fcd18ed4bb3cd248012a3c76cc5a7bf7eefb85c42e35de9d85469
|
4
|
+
data.tar.gz: b8bef46b7faf3a75d7f064cc7b9137e185fd786c0922ab94bbea05518d95bade
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6e2c933a4ebcaa35b5cbef3b2265d20f8e7dd9398fc313632a826fe7f1280ad9f6753d9780d6ee2b321d6be0459ceb4765cf5e551c2a0cc93b4b687d7c038b4
|
7
|
+
data.tar.gz: 55f633c30625d5d8285f8d0e4ab8c7f03d33a632c61995c0df0c79ea416069118ef32da27986ec92845c9f9a34bff666cb480984cb122fdc801c1818f6fe8358
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -24,7 +24,7 @@ module Uc3DmpId
|
|
24
24
|
# Find a DMP based on the contents of the incoming JSON
|
25
25
|
# -------------------------------------------------------------------------
|
26
26
|
def by_json(json:, debug: false)
|
27
|
-
json =
|
27
|
+
json = Helper.parse_json(json: json)&.fetch('dmp', {})
|
28
28
|
raise FinderError, MSG_INVALID_ARGS if json.nil? || (json['PK'].nil? && json['dmp_id'].nil?)
|
29
29
|
|
30
30
|
p_key = json['PK']
|
@@ -90,7 +90,7 @@ module Uc3DmpId
|
|
90
90
|
}
|
91
91
|
},
|
92
92
|
filter_expression: 'SK = :version',
|
93
|
-
expression_attribute_values: { ':version':
|
93
|
+
expression_attribute_values: { ':version': Helper::DMP_LATEST_VERSION }
|
94
94
|
}
|
95
95
|
client = client.nil? ? Uc3DmpDynamo::Client.new(debug: debug) : client
|
96
96
|
resp = client.query(**args)
|
data/lib/uc3-dmp-id/version.rb
CHANGED