uc3-dmp-provenance 0.0.12 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 453eb4ad07288ccd9ad6311160d2fe231af0655167d4156cb7139699ad31d302
4
- data.tar.gz: 60527fa8a203482bc5e38a1d8d731dca514c0cc4a9f578123a95164530a83284
3
+ metadata.gz: 447ff9f477af2166e1f5cbe01bb241e6b441c300c7003d8f51e202e44ddcafb5
4
+ data.tar.gz: 0740ef24b381143e68820c1d29887b5e307b66d4ce6e316e191e0d4ca4453541
5
5
  SHA512:
6
- metadata.gz: 0f4b522b6575def616403c0fbe399614418882bc6180bfc8a48293a03345470d6628ea80feaca7c495bdb023ecb8cfb017ad80b5e5510650405ad991a6a6328f
7
- data.tar.gz: 42f2c2487bbcc7c22d4711ad49708268367608a7f30acc24188467c0fcbd97ff9107eb251910237fbbfe354139ad3642dd9ce810d08531de5e5a0d68b5c7c8f2
6
+ metadata.gz: 6d2dc971ade242f5b93a8ad07b5766c1117f400f21d74166cdc2b7c8f1b9756a26e6f4388d0448303b63fe942b134eabe946f92244d4389d7b62cb652555c691
7
+ data.tar.gz: 25fa3320ec8645356df0435d669877165cbb9f2b04dbe017b11caa60737b983eb43a219419e35988a8e1795a036c470994f69be3d86f4b8ae8dafd63fba33f9d
@@ -37,7 +37,15 @@ module Uc3DmpProvenance
37
37
  key: { PK: Helper.append_pk_prefix(provenance: client_name), SK: Helper::SK_PROVENANCE_PREFIX },
38
38
  logger:
39
39
  )
40
- resp.nil? || resp.empty? ? nil : resp
40
+ return nil if resp.nil? || resp.empty? ? nil
41
+
42
+ # Fetch the list of RORs the provenance may access
43
+ key = "/uc3/dmp/tool/provenance/#{client_name}/ror_list"
44
+ ssm_val = Uc3DmpApiCore::SsmReader.fetch_value(key:, logger:)
45
+ return resp if ssm_val.nil?
46
+
47
+ resp['ror_list'] = JSON.parse(ssm_val)
48
+ resp
41
49
  end
42
50
 
43
51
  # Fetch the Provenance by it's PK.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpProvenance
4
- VERSION = '0.0.12'
4
+ VERSION = '0.0.14'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-provenance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.14
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-10-04 00:00:00.000000000 Z
11
+ date: 2024-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  requirements: []
144
- rubygems_version: 3.4.10
144
+ rubygems_version: 3.5.13
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: DMPTool gem that provides support for Provenance records