uc3-dmp-id 0.0.45 → 0.0.46
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 +3 -5
- 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: d478a33716920d1d91f8e933febebe7ec8e7a40a3d0bb50d4c50f1e764cf5aec
|
4
|
+
data.tar.gz: a073a32740da380be957b1af0061df437640e4126d79518d23b1a366e038f7dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb614d60d8ba75fd46e8316d39d27f27fc5f7ae3bdd8a91a632951b0abd947a29b075624f7ee211dc65975d6d162d873b949c5a247d2db78f1893e59cdaaaa7a
|
7
|
+
data.tar.gz: 6efc441c6c5f74c284d94a476b095eabe35f23b0995cecf8debf27d95a1f7e0f22d8307386a35c6322da045bfa099774f2536ea22010bf5e131420f2a009b275
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -64,18 +64,16 @@ module Uc3DmpId
|
|
64
64
|
|
65
65
|
# Fetch just the PK to see if a record exists
|
66
66
|
# -------------------------------------------------------------------------
|
67
|
-
def exists?(
|
67
|
+
def exists?(p_key:, s_key: Helper::DMP_LATEST_VERSION, client: nil)
|
68
68
|
raise FinderError, MSG_MISSING_PK if p_key.nil?
|
69
69
|
|
70
70
|
client = client.nil? ? Uc3DmpDynamo::Client.new(debug: debug) : client
|
71
|
-
|
71
|
+
client.pk_exists?(
|
72
72
|
key: {
|
73
73
|
PK: Helper.append_pk_prefix(p_key: p_key),
|
74
74
|
SK: s_key
|
75
|
-
}
|
76
|
-
projection_expression: 'PK'
|
75
|
+
}
|
77
76
|
)
|
78
|
-
resp.is_a?(Hash)
|
79
77
|
end
|
80
78
|
|
81
79
|
# Attempt to find the DMP item by the provenance system's identifier
|
data/lib/uc3-dmp-id/version.rb
CHANGED