contextual_logger 1.1.0 → 1.1.1

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: 60008f094eadb7217e227f18e231ccf5860747d3a2ee59fd3d72cf2fd07e657d
4
- data.tar.gz: 55f4cb698205f61e6e3b75ff1f920a9f85cab16ee3078ced7f18c2f877588010
3
+ metadata.gz: a7d4ef0ffd9faf3c8994edbc8f96cf0fbac7d29d3c776c54228740cc0801ca39
4
+ data.tar.gz: a423b940026c1830747c60c9c8bdd0eda732a148892ba40309ffd7888cebdd83
5
5
  SHA512:
6
- metadata.gz: 7a81f1ff4730f739c4a84cfe98c88dfca8dcbfb770418dc8a7ad0a9d24089126556cffd0d381f773c732116feea19545476904e255fbff304f710eefb4ab9938
7
- data.tar.gz: 51b7f598a1fa3d4d84b488134f4cbc7eb51ab585d79995c9e08b9e93f72bb8ef0043fb9aefd31166b89b111fa22c85b111ea92dd6b8099841759588dd266ffa0
6
+ metadata.gz: 62cb70627e93a215057100deb1b7f04c409355f423b3e58ecd37d95268c2ce94bfb73633048fb6c6a83fd0dea4b7383d80bfdf27e91c7258eb36329d00d7de41
7
+ data.tar.gz: 0be4154aaa62e04201d9c10ab12e199f5c59c387349b4ff28b73d86cc42ee82562a661ba1f11c8c42a8fc378410ce7171be84531093e90feaf4c6993afbbb62e
@@ -10,10 +10,10 @@ module ContextualLogger
10
10
  end
11
11
 
12
12
  def register_secret(sensitive_data)
13
- register_regex(Regexp.escape(sensitive_data))
13
+ register_secret_regex(Regexp.escape(sensitive_data))
14
14
  end
15
15
 
16
- def register_regex(regex)
16
+ def register_secret_regex(regex)
17
17
  if redaction_set.add?(regex)
18
18
  @redaction_regex = Regexp.new(
19
19
  redaction_set.to_a.join('|')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContextualLogger
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
@@ -43,7 +43,7 @@ module ContextualLogger
43
43
  end
44
44
 
45
45
  module LoggerMixin
46
- delegate :register_secret, to: :redactor
46
+ delegate :register_secret, :register_secret_regex, to: :redactor
47
47
 
48
48
  def global_context=(context)
49
49
  Context::Handler.new(context).set!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contextual_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Ebentier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-30 00:00:00.000000000 Z
11
+ date: 2022-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json