uc3-dmp-api-core 0.0.4 → 0.0.5

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: 9aaf0da8d3d0a98eca7164669bb10fd3e568506db031f3cb95e6d8f8925829ad
4
- data.tar.gz: 57268272fc5ca672ec58916c9f6f3f4a88ea9d288397649b34cc111fffe6e611
3
+ metadata.gz: b551c08f61f7dfefb748dccb66572b97d910efedc895061058b2750c701f5bdc
4
+ data.tar.gz: 29a146bdc34d0a344f8d3d3577102364d0465358d01a5346a36a4df3290ea989
5
5
  SHA512:
6
- metadata.gz: 02ea8416ca20299674c83ef744ab5bb57ae0f8c64535d91584ef9a09388506a626f3fc1aaf190d2d91480076e89d71069a531b2799d1fbb2956ffe5a03586fac
7
- data.tar.gz: '06749a319ef505d366096c273f63ed28bb3a1f5e5ab0e27bd7a5f317f21a82cbf0451aa41f2d82c373c3ef4dfb07c4ddb072bbc8c3015509d574244c9eb6af1f'
6
+ metadata.gz: 5458ceb6125ad2aff9085fdcebdca615d150c703d39243f683748db554981d4af73e1880260daef2c36380ed0820dca1d72e9f32b4e7931ad73db3c0a0572360
7
+ data.tar.gz: dd36ddc16e919064bbefa90295db54e81c8d7fc923954efe920264cefbf0bc1117ae29345f5c0dab7dbef7bc443de5300c0d3807d8abd0849e4c66c82ed2d3e4
@@ -10,7 +10,7 @@ module Uc3DmpApiCore
10
10
  # - event: the Lambda event if available
11
11
  #
12
12
  # --------------------------------------------------------------------------------
13
- class Logger
13
+ class LogWriter
14
14
  class << self
15
15
  # rubocop:disable Metrics/AbcSize
16
16
  def log_error(source:, message:, details: {}, event: {})
@@ -2,8 +2,6 @@
2
2
 
3
3
  require 'aws-sdk-ssm'
4
4
 
5
- require 'logger'
6
-
7
5
  module Uc3DmpApiCore
8
6
  # ----------------------------------------------------
9
7
  # SSM Parameter Store Helper
@@ -33,7 +31,7 @@ module Uc3DmpApiCore
33
31
  !full_key.include?('%{provenance}')
34
32
  fetch_value(key: format(full_key, key_vals))
35
33
  rescue Aws::Errors::ServiceError => e
36
- Logger.log_error(
34
+ LogWriter.log_error(
37
35
  source: "#{SOURCE} - looking for #{key}", message: e.message, details: e.backtrace
38
36
  )
39
37
  nil
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpApiCore
4
- VERSION = '0.0.4'
4
+ VERSION = '0.0.5'
5
5
  end
@@ -3,7 +3,7 @@
3
3
  require 'aws-sdk-sns'
4
4
  require 'aws-sdk-ssm'
5
5
 
6
- require 'uc3-dmp-api-core/logger'
6
+ require 'uc3-dmp-api-core/log_writer'
7
7
  require 'uc3-dmp-api-core/notifier'
8
8
  require 'uc3-dmp-api-core/paginator'
9
9
  require 'uc3-dmp-api-core/responder'
metadata CHANGED
@@ -1,7 +1,7 @@
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
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley
@@ -117,7 +117,7 @@ extra_rdoc_files: []
117
117
  files:
118
118
  - README.md
119
119
  - lib/uc3-dmp-api-core.rb
120
- - lib/uc3-dmp-api-core/logger.rb
120
+ - lib/uc3-dmp-api-core/log_writer.rb
121
121
  - lib/uc3-dmp-api-core/notifier.rb
122
122
  - lib/uc3-dmp-api-core/paginator.rb
123
123
  - lib/uc3-dmp-api-core/responder.rb