contextual_logger 1.1.0 → 1.2.0.pre.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: d5ee8cad9d62ca2d8aeec81f2626b56b4aa6b1db2c6b626518a4708d590ddb4c
4
+ data.tar.gz: 71be08f271be68de04f942abfa301a2a5ec54be54d0399bb01db8bcf52a07037
5
5
  SHA512:
6
- metadata.gz: 7a81f1ff4730f739c4a84cfe98c88dfca8dcbfb770418dc8a7ad0a9d24089126556cffd0d381f773c732116feea19545476904e255fbff304f710eefb4ab9938
7
- data.tar.gz: 51b7f598a1fa3d4d84b488134f4cbc7eb51ab585d79995c9e08b9e93f72bb8ef0043fb9aefd31166b89b111fa22c85b111ea92dd6b8099841759588dd266ffa0
6
+ metadata.gz: 2b455d41a46223ea9c6e2583a7d03d81940743215c4eb1dd5977d6ffc8f8ffcb618ce27a3b975fed211987b592e0cfdbc1e691ceef155641764c5d8938da0679
7
+ data.tar.gz: 6600b357b1dc7b25ee8e746f17280a7e74ac184b38a03340f48e835659259135321a0c0ff0d7c387a7b06b9804b82ad63f8b76a911790a6fb5c2f99a61c0cfdc
@@ -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.2.0.pre.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.2.0.pre.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: 2023-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -67,9 +67,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - ">="
70
+ - - ">"
71
71
  - !ruby/object:Gem::Version
72
- version: '0'
72
+ version: 1.3.1
73
73
  requirements: []
74
74
  rubygems_version: 3.1.6
75
75
  signing_key: