uc3-dmp-id 0.0.10 → 0.0.11
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 -3
- data/lib/uc3-dmp-id/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d939c9632627e8210c03f3d0e6a6c742076540d401fd6cb8d20a18fe5007f93
|
4
|
+
data.tar.gz: 3a9b9367c66ff23fe7c710a1ee7cc0fcf29ffa0ebc3eb6861e2ca3ffa7959ab7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a03ba8fab35515ca126b39fc7ec140823eaa250e560c300bf3d6621a30ddf710a8410ed48d096aac743f037899a84e158c4ddeccccd9c603204d4c6b6570180
|
7
|
+
data.tar.gz: 9ae9ed3c91002df747860dae714b86de88be6e1d5f2d7fdfe24d57fb391fc1fc144bc9c903b23cb6b55c6debb96bdf6744858c18bf77bfbeb89628ccea325a30
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -28,7 +28,7 @@ module Uc3DmpId
|
|
28
28
|
|
29
29
|
args = {
|
30
30
|
key_conditions: {
|
31
|
-
PK: { attribute_value_list: [Helper.append_pk_prefix(
|
31
|
+
PK: { attribute_value_list: [Helper.append_pk_prefix(p_key: p_key)], comparison_operator: 'EQ' }
|
32
32
|
},
|
33
33
|
projection_expression: 'modified',
|
34
34
|
scan_index_forward: false
|
@@ -65,7 +65,7 @@ module Uc3DmpId
|
|
65
65
|
client = client.nil? ? Uc3DmpDynamo::Client.new(debug: debug) : client
|
66
66
|
resp = client.get_item(
|
67
67
|
key: {
|
68
|
-
PK: Helper.append_pk_prefix(
|
68
|
+
PK: Helper.append_pk_prefix(p_key: p_key),
|
69
69
|
SK: s_key.nil? || s_key.strip.empty? ? Helper::DMP_LATEST_VERSION : s_key
|
70
70
|
}
|
71
71
|
)
|
@@ -115,7 +115,7 @@ module Uc3DmpId
|
|
115
115
|
timestamp = version['dmp']['modified']
|
116
116
|
{
|
117
117
|
timestamp: timestamp,
|
118
|
-
url: "#{Helper.api_base_url}dmps/#{Helper.remove_pk_prefix(
|
118
|
+
url: "#{Helper.api_base_url}dmps/#{Helper.remove_pk_prefix(p_key: p_key)}?version=#{timestamp}"
|
119
119
|
}
|
120
120
|
end
|
121
121
|
dmp['dmp']['dmphub_versions'] = JSON.parse(versions.to_json)
|
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.11
|
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-05
|
11
|
+
date: 2023-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: logger
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.4'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.4'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: uc3-dmp-dynamo
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|