uc3-dmp-api-core 0.0.20 → 0.0.21

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: 354689c21ace97311ced80489d4c0e0acd7fb0ba9b4d09f7019181a004cbbd75
4
- data.tar.gz: 62c33d8fd7db134b5bab7614f13af1fe1b5994eceb2e950f4d44ebb516e9a3ca
3
+ metadata.gz: 814a119b8bc2cae5b1019b447d206158f32af4322d7027c5d67692790662b620
4
+ data.tar.gz: 706c0127627df31924c712de0129f09e721d6659b8f04c0ce7ebdc4a819f1f14
5
5
  SHA512:
6
- metadata.gz: 4b4dfab408d9aa07419323466d6b4c560245ceb13afede8420b833e66694ef35fc78e2eb521b098f2d7d9141d07912e5c58fc75633f0455997370cf64c660ca6
7
- data.tar.gz: b7a6be0cd913a8e5e860579b52309622d741197dd114cede6a1fbd76df6ce7abd02e97973f716c8e27d1206ec561c1a7e06dca4fe0a7b2e7f36f8a9e387907b3
6
+ metadata.gz: 5aa2fb5aeea37687db35306f41c775ca5497f5184d5e04750830b8d2c9cd87a79d34e3c54c399f2531aa244d5bdf4f0e2c02684131f57d0892a06a0012fc9351
7
+ data.tar.gz: e0b90e46aac95b8d63f355e5e4198f0c99d3888a05abda1ac48e45ca5fcaef77ad38f479263e215e080ece7cf74d909604c221648dac86845a8957674bc59e44
@@ -51,8 +51,7 @@ module Uc3DmpApiCore
51
51
 
52
52
  { statusCode: status.to_i, body: body.compact.to_json, headers: headers }
53
53
  rescue StandardError => e
54
- puts "Uc3DmpApiCore.Responder.respond - #{e.message}"
55
- puts " - STACK: #{e.backtrace}"
54
+ logger.error(message: e.message, details: e.backtrace) unless logger.nil?
56
55
  _standard_error(url: url)
57
56
  end
58
57
  # rubocop:enable Metrics/AbcSize
@@ -22,7 +22,7 @@ module Uc3DmpApiCore
22
22
  # rubocop:disable Metrics/AbcSize
23
23
  def get_ssm_value(key:, provenance_name: nil, logger: nil)
24
24
  full_key = _ssm_keys[:"#{key.downcase}"] unless key.nil?
25
- logger.debug(message: "Looking for SSM Key: #{full_key}")
25
+ logger.debug(message: "Looking for SSM Key: #{full_key}") unless logger.nil?
26
26
  return nil if full_key.nil?
27
27
 
28
28
  key_vals = { env: ENV.fetch('LAMBDA_ENV', 'dev').to_s.downcase }
@@ -31,7 +31,6 @@ module Uc3DmpApiCore
31
31
  !full_key.include?('%{provenance}')
32
32
  fetch_value(key: format(full_key, key_vals), logger: logger)
33
33
  rescue Aws::Errors::ServiceError => e
34
- puts "Fatal error in #{SOURCE} - #{e.message}" if logger.nil?
35
34
  logger.error(message: "Looking for SSM Key: #{key} - #{e.message}", details: e.backtrace) unless logger.nil?
36
35
  nil
37
36
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpApiCore
4
- VERSION = '0.0.20'
4
+ VERSION = '0.0.21'
5
5
  end
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.20
4
+ version: 0.0.21
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-07-07 00:00:00.000000000 Z
11
+ date: 2023-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json