event_tracer 0.2.1 → 0.2.2

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: 77058f3fa969027f3d51399425d8885c60037ae6250db1cfa686fbafb8524467
4
- data.tar.gz: 40b98f105722939c88bb364a04bfbd708c9fcfc2c76815d41d5b2318994aa9bb
3
+ metadata.gz: 72b9ead92b130709f1d0a48bac3508af836e65467b8815aa733c4f7101308472
4
+ data.tar.gz: 47dce77a79c44aa0c012f06a79f3ec3180777f107658c95d1b88d623f33efeba
5
5
  SHA512:
6
- metadata.gz: 31fb42ad32f68d2efd4b78dbfb9d55f16563bc897eaa4c4602c5855eb092bf0f03c4308c22a91ed011663c095548029155a7a795de638405588bb162a93d723b
7
- data.tar.gz: 58c9ec65b708b9b44fb141c9da778fbc6d56fea371a8edc9e0aaf9ef4d4a2b89855e0a88afbafd0a61312c2b8023bd7c13325bc0f7c86be13ee7d87e534dc6ad
6
+ metadata.gz: 2c421202ce3c265caa5db1c61d8138252b3bf4b8944de665569f3794b26ea1753e64023fda526577af4b36bb82e4c6724f89d5f823b9e2750a004830b206bafc
7
+ data.tar.gz: 005d7c0b9b652e5020bce39afa4619c2774db3a4101d0981dcf48ee0d2dc9568c053b66268d403ef6ab599f7d16a1c9d4053adea3f2e618767e356344e252cf2
data/lib/event_tracer.rb CHANGED
@@ -33,7 +33,7 @@ module EventTracer
33
33
  loggers.each do |code, logger|
34
34
  begin
35
35
  if args[:action] && args[:message]
36
- result.record code, logger.send(log_type, filtered_log_arguments(code, args))
36
+ result.record code, logger.send(log_type, **filtered_log_arguments(code, args))
37
37
  else
38
38
  result.record code, LogResult.new(false, 'Fields action & message need to be populated')
39
39
  end
@@ -7,8 +7,8 @@ module EventTracer
7
7
  class BaseLogger < BasicDecorator
8
8
 
9
9
  LOG_TYPES.each do |log_type|
10
- define_method log_type do |*args|
11
- send_message(log_type, *args)
10
+ define_method log_type do |**args|
11
+ send_message(log_type, **args)
12
12
  LogResult.new(true)
13
13
  end
14
14
  end
@@ -1,3 +1,5 @@
1
+ require 'delegate'
2
+
1
3
  module EventTracer
2
4
  class BasicDecorator < Delegator
3
5
 
@@ -15,4 +17,4 @@ module EventTracer
15
17
  end
16
18
 
17
19
  end
18
- end
20
+ end
@@ -1,3 +1,3 @@
1
1
  module EventTracer
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.2.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: event_tracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - melvrickgoh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-15 00:00:00.000000000 Z
11
+ date: 2021-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.1.4
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.1.4
27
27
  - !ruby/object:Gem::Dependency
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubygems_version: 3.0.8
90
+ rubygems_version: 3.2.3
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Thin wrapper for formatted logging/ metric services to be used as a single