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 +4 -4
- data/lib/contextual_logger/redactor.rb +2 -2
- data/lib/contextual_logger/version.rb +1 -1
- data/lib/contextual_logger.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7d4ef0ffd9faf3c8994edbc8f96cf0fbac7d29d3c776c54228740cc0801ca39
|
4
|
+
data.tar.gz: a423b940026c1830747c60c9c8bdd0eda732a148892ba40309ffd7888cebdd83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
13
|
+
register_secret_regex(Regexp.escape(sensitive_data))
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
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('|')
|
data/lib/contextual_logger.rb
CHANGED
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.
|
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
|
+
date: 2022-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|