uc3-dmp-provenance 0.0.13 → 0.0.15

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: '085e7cad87be83e14f9a1b3e2126b8bc252f50bd70e42b81b4c6a6ba8d54b2e0'
4
- data.tar.gz: 6d768084f7f5662a46d885b58dd682dc67deb723ea32eb6c0c42648af235bde1
3
+ metadata.gz: fa860f2d0b1f76b57832f76f59fca7a37d484ff23ebf36b18a0f0518c65eb7fd
4
+ data.tar.gz: cc0c3dea17b33199d70fb95c1106a8bd2de5a294c8fd95d548ed75192d07c3ab
5
5
  SHA512:
6
- metadata.gz: 43cd0fadd767cb64d614ca5e179cf3ef0e355f848a1e10cdb840eaaa76c4a6d6ed8d074148df24ff2f03b58f607cb88880d5e2fb7e463e932762b459626c24f2
7
- data.tar.gz: e3f59a2d7ef8483edf0bd461b656a7f2187ea1287848fa7908f4c6c33c2cbf14c3738fdef154095937231db3378628430a71e735d2ce38a03d6ee5950f91f4c9
6
+ metadata.gz: b024d2c07783b10bae0b21ae735ac3101638582f95e2b7176bc4532e8e65c75b930ed6ba460b870d71d2f1393dae40e8f6f6985cec51503c545aa81ef2537365
7
+ data.tar.gz: 0aa8d70ad411dd1fffe781ffe24439792186e67d3a391e29b613ae05e42a065e8c238db5baa8d8ea7eea8905d7b9553eff63f2f72806c29d9565aba30c5430e2
@@ -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?
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.13'
4
+ VERSION = '0.0.15'
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.13
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-29 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.22
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