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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63205a96813c40c4f0b7969dc629d998c263187277748bc1d934ff62f6a35fe4
4
- data.tar.gz: ad1dfc82eb0fc361ca63b2acf2cc898f7cf8749f4fee9e9b43d8c1e7aa8827c5
3
+ metadata.gz: a6cf936fa7b811bf0555f85821b07dd6c7eee9b6395acddda451fd083d6e6c9c
4
+ data.tar.gz: becd1315d0266527f05eaf28f7bac584897457808ec288258a2e2495aba0e139
5
5
  SHA512:
6
- metadata.gz: a6283ea52aa5caa6f2e03a0bd147796d16edc52642f93fa9e33320911d0b56ecaf7b7211de871fe642536ea7cd0f1b9ee2ca026b989c302d86d4b147355643c8
7
- data.tar.gz: fd08016205d931d6ab40bb74df0893bc862b2b216da306cd9546b29fb8a35bd85a782c5654846531dccf1474c34aafb9f667f3632044b09fa2c9a68ff6ae7dfb
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',
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpApiCore
4
- VERSION = '0.0.10'
4
+ VERSION = '0.0.12'
5
5
  end
@@ -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.10
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-05-31 00:00:00.000000000 Z
11
+ date: 2023-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json