uc3-dmp-api-core 0.0.19 → 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: 5ce7df10e928100fae5b672089be84d873cf758ecac695c9c571abb0ab02a407
4
- data.tar.gz: 93dc08eb6b46eefbe86c236edcd273679eadffad2e7283f59016d2ffbbc25ee6
3
+ metadata.gz: 814a119b8bc2cae5b1019b447d206158f32af4322d7027c5d67692790662b620
4
+ data.tar.gz: 706c0127627df31924c712de0129f09e721d6659b8f04c0ce7ebdc4a819f1f14
5
5
  SHA512:
6
- metadata.gz: 3f312834841be19dd00700c2be8b9627f8c68321a8264733af87a87bec0e2863b857591c51e5489a26aabdbfbf236213d79511ac1d3294c87abf28d4876655de
7
- data.tar.gz: 15c9bd557334bbaf9338ec1e2fd2904522f728d30ffeac6a2c6d498fce5620ce22fc92ebb11eac2e9e8b3e620d4632ff898f973c02be5a1d66c14aefd1be8159
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,16 +22,15 @@ 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 }
29
29
  # Swap in the provenance name if applicable
30
30
  key_vals[:provenance] = provenance_name unless provenance_name.nil? ||
31
31
  !full_key.include?('%{provenance}')
32
- fetch_value(key: format(full_key, key_vals, logger: logger))
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.19'
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.19
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