contextual_logger 1.2.0 → 1.3.0

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: 1345e9a0914c195f20d4cb22012452faff2bde5c9a869ee41db6a5c80ac70b03
4
- data.tar.gz: 9614e6145e032712d0e8ebf64b1266ed7872200be70a782f5b1a9ed54edeeb1d
3
+ metadata.gz: 10a32750e2827bf7b9fcbf3af8cd20b68f617cba4350e060776e09f0e5b4503d
4
+ data.tar.gz: d890b6fc5f53da1a41eedaae373f5eea4448568b68a5ccec9238a768a8dfbf19
5
5
  SHA512:
6
- metadata.gz: ec61e408108a4485223e9c4d07029957e345f39d689d797db26263c37bfe5264661f11909ac808e2e0102176b172a7f2867b1d3bec624e58f3a927c6f53996e3
7
- data.tar.gz: 28976f222764d2323103690a8e76896b85914f59f594c0264554fd502832dfedc4fdeb2fac988baa98f6998dedadbb283e2da3ff4a647dd0341446d7b0cc99c4
6
+ metadata.gz: 795abcaa64116174c14bfc18984c2440586e8d504589ecdddac8715abe70a330de5409480a052369b7957dde96bdae5ceb6073580f1fcc255ccc83f3bc4437ff
7
+ data.tar.gz: b35f4e70d0aad54203b69a4752bc4e687921b33ddac018f595cff2e98c1099173ed9f72079ffe76201d52226f885fd8aa9dc641e9cadf084c24ce9c0399a75a7
@@ -21,6 +21,8 @@ module ContextualLogger
21
21
  end
22
22
  end
23
23
 
24
+ # @param log_line [String]
25
+ # @return [String]
24
26
  def redact(log_line)
25
27
  if redaction_regex
26
28
  log_line.gsub(redaction_regex, '<redacted>')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContextualLogger
4
- VERSION = '1.2.0'
4
+ VERSION = '1.3.0'
5
5
  end
@@ -51,7 +51,7 @@ module ContextualLogger
51
51
  module LoggerMixin
52
52
  include Context
53
53
 
54
- delegate :register_secret, :register_secret_regex, to: :redactor
54
+ delegate :register_secret, :register_secret_regex, :redact, to: :redactor
55
55
 
56
56
  def global_context
57
57
  @global_context ||= Context::EMPTY_CONTEXT
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.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Ebentier
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-14 00:00:00.000000000 Z
11
+ date: 2023-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '7.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "<"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '7.1'
41
41
  description: A way to add context to the logs you have
42
42
  email: jebentier@invoca.com
43
43
  executables: []
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  source_code_uri: https://github.com/Invoca/contextual_logger
60
60
  allowed_push_host: https://rubygems.org
61
- post_install_message:
61
+ post_install_message:
62
62
  rdoc_options: []
63
63
  require_paths:
64
64
  - lib
@@ -73,8 +73,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.1.6
77
- signing_key:
76
+ rubygems_version: 3.4.12
77
+ signing_key:
78
78
  specification_version: 4
79
79
  summary: Add context to your logger
80
80
  test_files: []