blinkist-airbrake-scrubber 3.0.1 → 4.0.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: 9f3bf2a3e9dd72edd4e209f43250ed1cf6d8a2e43a77bf41b67ea7fa00e8d842
4
- data.tar.gz: fd4a493b2e42945e725985decdd7e94be6c429921e6e0045bae1f9261f80f698
3
+ metadata.gz: 8c3624ef93c7f0c0efc5b05e4d30b501485b40b644000a703db3a8b1218ff900
4
+ data.tar.gz: 10a836a1fe75c1f8ca4eb1b4f8b5681b2ef646ca5220db69dd539094354f3e43
5
5
  SHA512:
6
- metadata.gz: 82d8dc93d5e5e243f71f863d3483a670af50a5ce40260b29e65222790c51b5b1eaaae3658880f62009d4f0c26d4f0341a603a505ea2ba2083712ed19088c9020
7
- data.tar.gz: a8acad99e3558fb86cb3efa0ebc09411340a3167f30ec50641fbed91c26d681544488c89d033e3a5f160788b4c11e8c4bfd5e9ac69581c6fc1bdca13c47230b0
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", "~> 7"
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) }
@@ -19,7 +19,7 @@ module Blinkist
19
19
 
20
20
  # Override original Airbrake.configure
21
21
  def configure(*args, &block)
22
- super
22
+ super(&block)
23
23
  ensure
24
24
  Blinkist::AirbrakeScrubber.run!
25
25
  end
@@ -1,7 +1,7 @@
1
1
  module Blinkist
2
2
  module AirbrakeScrubber
3
3
 
4
- VERSION = "3.0.1"
4
+ VERSION = "4.0.0"
5
5
 
6
6
  end
7
7
  end
@@ -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[:default].build_notice(
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
- notifier.instance_variable_get(:@filter_chain).refine(notice)
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[:default].build_notice(
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
- notifier.instance_variable_get(:@filter_chain).refine(notice)
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[:default].build_notice(
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
- notifier.instance_variable_get(:@filter_chain).refine(notice)
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[:default].build_notice(
29
+ notice = Airbrake.build_notice(
31
30
  Exception.new('whatever'),
32
31
  { password: 'whatever', deeply: { nested: { password: 'whatever' } } }
33
32
  )
34
33
 
35
- notifier.instance_variable_get(:@filter_chain).refine(notice)
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
@@ -12,7 +12,7 @@ describe Blinkist::AirbrakeScrubber::VERSION do
12
12
 
13
13
  it 'equals 3.0.1 for auto-check purposes' do
14
14
  version = Blinkist::AirbrakeScrubber::VERSION
15
- expect(version).to eq '3.0.1'
15
+ expect(version).to eq '4.0.0'
16
16
  end
17
17
 
18
18
  end
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: 3.0.1
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: 2018-05-29 00:00:00.000000000 Z
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: '7'
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: '7'
28
+ version: '0'
29
29
  description: Email scrubbing configuration for Airbrake at Blinkist
30
30
  email:
31
31
  - pawel@blinkist.com