airbrake-ruby 2.8.1 → 2.8.2

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
  SHA1:
3
- metadata.gz: 50b058e4ca12d19c4301facc227f092f02f90e1c
4
- data.tar.gz: 390831b5b443b33bd620b7d3f3ac454062e56169
3
+ metadata.gz: d1e08da9f4a17b7b27c73747159c8ce19f299e29
4
+ data.tar.gz: 9b5cb1bb1834efc17b761d223752c6aa4b80de80
5
5
  SHA512:
6
- metadata.gz: 3d186ccb82d88d4f1bdb2b086ebf939467069c559a6123544cd5d288111bad9f5eddfb86c3eba2d2e347b066514399d462021234c227451803700a5db8213375
7
- data.tar.gz: f42b96961f9e0a05ceaea1d628b9cadf7fd544adaf73983e6c3337e861346439b7fe712a216f068bb700ed7afbb105779689c5970681f0680b5fa54938c4d344
6
+ metadata.gz: 6768fc9937d7c5dfad8a67d06b84eae878d384d3b6e495982d0b79bf7c455f9c5cf19e7cd49e2590486f8910add4ca98fb098d2b96ebdeaf2b003c49f614250d
7
+ data.tar.gz: 8e52117467dc6f2c518eb3aeac674548d89a31b426deb05147c8667dcb0d80c76041d95bbf6125582fec4b821d52d761e2b15611c546f4a9f6350a171ef4d8c7
@@ -78,6 +78,8 @@ module Airbrake
78
78
  hash[key] = FILTERED
79
79
  elsif hash[key].is_a?(Hash)
80
80
  filter_hash(hash[key])
81
+ elsif hash[key].is_a?(Array)
82
+ hash[key].each { |h| filter_hash(h) }
81
83
  end
82
84
  end
83
85
  end
@@ -4,5 +4,5 @@
4
4
  module Airbrake
5
5
  ##
6
6
  # @return [String] the library version
7
- AIRBRAKE_RUBY_VERSION = '2.8.1'.freeze
7
+ AIRBRAKE_RUBY_VERSION = '2.8.2'.freeze
8
8
  end
@@ -60,6 +60,17 @@ RSpec.describe Airbrake::Filters::KeysBlacklist do
60
60
  )
61
61
  end
62
62
 
63
+ context "when a pattern is a Array of Hash" do
64
+ include_examples(
65
+ 'pattern matching',
66
+ ['bingo'],
67
+ [
68
+ { array: [bingo: 'bango'] },
69
+ { array: [bingo: '[Filtered]'] }
70
+ ]
71
+ )
72
+ end
73
+
63
74
  context "when a Proc pattern was provided" do
64
75
  context "along with normal keys" do
65
76
  include_examples(
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.1
4
+ version: 2.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airbrake Technologies, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-31 00:00:00.000000000 Z
11
+ date: 2018-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec