uc3-dmp-api-core 0.0.10 → 0.0.12
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-api-core/ssm_reader.rb +2 -2
- data/lib/uc3-dmp-api-core/version.rb +1 -1
- data/lib/uc3-dmp-api-core.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6cf936fa7b811bf0555f85821b07dd6c7eee9b6395acddda451fd083d6e6c9c
|
4
|
+
data.tar.gz: becd1315d0266527f05eaf28f7bac584897457808ec288258a2e2495aba0e139
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7decaf2160f8caf1b82208bcf5ce14dc9410cbbc6af94af8cf93524dd512f0c89465bf74cbf0bd8a8cd38192af9a93c5b3f6f5304f2b0eb103f678c177f13a01
|
7
|
+
data.tar.gz: 9c370b440b514fb66c08aa83c64e60891b5e8e4fef9360ff416196e03805d4317cd532614a6e61f57a8f77df9a71cb1e6db1884f3b352982cc235d1c8ca31d28
|
@@ -46,7 +46,7 @@ module Uc3DmpApiCore
|
|
46
46
|
# Checks to see if debug mode has been enabled in SSM
|
47
47
|
# ----------------------------------------------------
|
48
48
|
def debug_mode?
|
49
|
-
get_ssm_value(key: _ssm_keys[:debug_mode])&.downcase&.strip == 'true'
|
49
|
+
get_ssm_value(key: _ssm_keys[:debug_mode])&.to_s.&.downcase&.strip == 'true'
|
50
50
|
end
|
51
51
|
|
52
52
|
private
|
@@ -59,7 +59,7 @@ module Uc3DmpApiCore
|
|
59
59
|
administrator_email: '/uc3/dmp/hub/%{env}/AdminEmail',
|
60
60
|
api_base_url: '/uc3/dmp/hub/%{env}/ApiBaseUrl',
|
61
61
|
base_url: '/uc3/dmp/hub/%{env}/BaseUrl',
|
62
|
-
debug_mode: '/uc3/dmp/hub/%{env}/Debug'
|
62
|
+
debug_mode: '/uc3/dmp/hub/%{env}/Debug'
|
63
63
|
|
64
64
|
dmp_id_api_url: '/uc3/dmp/hub/%{env}/EzidApiUrl',
|
65
65
|
dmp_id_base_url: '/uc3/dmp/hub/%{env}/EzidBaseUrl',
|
data/lib/uc3-dmp-api-core.rb
CHANGED
@@ -16,5 +16,7 @@ module Uc3DmpApiCore
|
|
16
16
|
MSG_SUCCESS = 'Success'
|
17
17
|
MSG_INVALID_ARGS = 'Invalid arguments.' # For HTTP 400 (Bad request)
|
18
18
|
MSG_SERVER_ERROR = 'Unable to process your request at this time.' # For HTTP 500 (Server error)
|
19
|
+
MSG_NOT_FOUND = 'Record not found'
|
20
|
+
MSG_FORBIDDEN = 'Unauthorized'
|
19
21
|
end
|
20
22
|
# rubocop:enable Naming/FileName
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uc3-dmp-api-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
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-
|
11
|
+
date: 2023-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|