blinkist-airbrake-scrubber 3.0.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/blinkist-airbrake-scrubber.gemspec +1 -1
- data/lib/blinkist-airbrake-scrubber.rb +1 -1
- data/lib/blinkist-airbrake-scrubber/version.rb +1 -1
- data/spec/specs/lib/blinkist-airbrake-scrubber/scrubbers/params_email_spec.rb +4 -5
- data/spec/specs/lib/blinkist-airbrake-scrubber/scrubbers/params_password_spec.rb +4 -5
- data/spec/specs/version_spec.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c3624ef93c7f0c0efc5b05e4d30b501485b40b644000a703db3a8b1218ff900
|
4
|
+
data.tar.gz: 10a836a1fe75c1f8ca4eb1b4f8b5681b2ef646ca5220db69dd539094354f3e43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 043ad07c5e24d9a1b661e22040338caece2aa828465a154751b89fc137fc05c31c63893aa2e1b33095b211f1d1fdbda4ac5c3caf447554e3e502c009aa66c75b
|
7
|
+
data.tar.gz: 449d8acd227327a64ee29f46f995c6a1282ba29561f7e6e2fe513beeb412ddad053cd770bc1bcfe3b7c99b529a980f2a0940e9dd3aa765fc49e4f30ede1e6577
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.license = "MIT"
|
15
15
|
|
16
16
|
# Airbrake
|
17
|
-
gem.add_dependency "airbrake"
|
17
|
+
gem.add_dependency "airbrake"
|
18
18
|
|
19
19
|
gem.files = Dir["{lib,spec}/**/*", "README.md", "Rakefile", "Gemfile", "*.gemspec"]
|
20
20
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
@@ -1,9 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Blinkist::AirbrakeScrubber::ParamsEmail do
|
4
|
-
let(:notifier) { Airbrake[:default] }
|
5
4
|
let(:notice) {
|
6
|
-
Airbrake
|
5
|
+
Airbrake.build_notice(
|
7
6
|
Exception.new('whatever'),
|
8
7
|
{ email: 'user@example.org', password: 'whatever', param: 'whatever' }
|
9
8
|
)
|
@@ -22,17 +21,17 @@ describe Blinkist::AirbrakeScrubber::ParamsEmail do
|
|
22
21
|
end
|
23
22
|
|
24
23
|
it "scrubs the email from the params hash" do
|
25
|
-
|
24
|
+
Airbrake.notice_notifier.instance_variable_get(:@filter_chain).refine(notice)
|
26
25
|
expect(notice[:params][:email]).to eq(Blinkist::AirbrakeScrubber::FILTERED)
|
27
26
|
end
|
28
27
|
|
29
28
|
it "scrubs the deep-nested email from the params hash" do
|
30
|
-
notice = Airbrake
|
29
|
+
notice = Airbrake.build_notice(
|
31
30
|
Exception.new('whatever'),
|
32
31
|
{ email: 'user@example.org', deeply: { nested: { email: 'user@example.org' } } }
|
33
32
|
)
|
34
33
|
|
35
|
-
|
34
|
+
Airbrake.notice_notifier.instance_variable_get(:@filter_chain).refine(notice)
|
36
35
|
expect(notice[:params][:email]).to eq(Blinkist::AirbrakeScrubber::FILTERED)
|
37
36
|
expect(notice[:params][:deeply][:nested][:email]).to eq(Blinkist::AirbrakeScrubber::FILTERED)
|
38
37
|
end
|
@@ -1,9 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Blinkist::AirbrakeScrubber::ParamsPassword do
|
4
|
-
let(:notifier) { Airbrake[:default] }
|
5
4
|
let(:notice) {
|
6
|
-
Airbrake
|
5
|
+
Airbrake.build_notice(
|
7
6
|
Exception.new('whatever'),
|
8
7
|
{ email: 'user@example.org', password: 'whatever', param: 'whatever' }
|
9
8
|
)
|
@@ -22,17 +21,17 @@ describe Blinkist::AirbrakeScrubber::ParamsPassword do
|
|
22
21
|
end
|
23
22
|
|
24
23
|
it "scrubs the password from the params hash" do
|
25
|
-
|
24
|
+
Airbrake.notice_notifier.instance_variable_get(:@filter_chain).refine(notice)
|
26
25
|
expect(notice[:params][:password]).to eq(Blinkist::AirbrakeScrubber::FILTERED)
|
27
26
|
end
|
28
27
|
|
29
28
|
it "scrubs the deep-nested password from the params hash" do
|
30
|
-
notice = Airbrake
|
29
|
+
notice = Airbrake.build_notice(
|
31
30
|
Exception.new('whatever'),
|
32
31
|
{ password: 'whatever', deeply: { nested: { password: 'whatever' } } }
|
33
32
|
)
|
34
33
|
|
35
|
-
|
34
|
+
Airbrake.notice_notifier.instance_variable_get(:@filter_chain).refine(notice)
|
36
35
|
expect(notice[:params][:password]).to eq(Blinkist::AirbrakeScrubber::FILTERED)
|
37
36
|
expect(notice[:params][:deeply][:nested][:password]).to eq(Blinkist::AirbrakeScrubber::FILTERED)
|
38
37
|
end
|
data/spec/specs/version_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blinkist-airbrake-scrubber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paweł Komarnicki
|
@@ -10,22 +10,22 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2019-04-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: airbrake
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
21
|
+
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - "
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '
|
28
|
+
version: '0'
|
29
29
|
description: Email scrubbing configuration for Airbrake at Blinkist
|
30
30
|
email:
|
31
31
|
- pawel@blinkist.com
|