sentry-sanitizer 0.10.1 → 0.10.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fda0761b926ec58a8247355163c29c8b3b48fe3f0b343e3fb492b6e6402b6e6c
4
- data.tar.gz: 4e53e4ab1fe8194c6757ff958ddda229dcf6603b8724798c94fd24ccbe8681a2
3
+ metadata.gz: e4b230cb2834f352d6ab8f0004fb4102203855c8a13177df9da84742314c566d
4
+ data.tar.gz: af4c8a31e8a80404d3134626005fc37a0db364dc82f18074da1f1b5b62973a5f
5
5
  SHA512:
6
- metadata.gz: fb63ecf8b95c47080a0a376072600aac28839da51d3f3b3892c4cae7584bf7ec7367d81cee3f0db1afd687c45324d999135604b852f6c38dc99ec4b9ac03368c
7
- data.tar.gz: 214ba8ef2ae130dcd99e5dce43d75c77b4fd6c2c1903479aa6e7f96915c4fccdaf0986860c96ed8192abcb9ff2a3c6f97735cbcaac7f907a1d5c0fad6184afef
6
+ metadata.gz: 4adc8db3eca4d2e2dcc849736e129b9a521d42336fad9808128fae2a87afd8923a7c5db505c26b21434cfdebfaec352d7e43a6a07d5ff516477ef196b8386254
7
+ data.tar.gz: d17e3f76516cd0bc1b6911a5a4adc9fdf5a1712f5f2cd5cc543812f0051e954c77603d5249627807f701d33d440aaae33e33cb83db3d14c5d047789e5ea8b883
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.2
4
+
5
+ - Fix span sanitizing with custom filter (ActiveSupport::ParameterFilter) [#28](https://github.com/mrexox/sentry-sanitizer/pull/28)
6
+
3
7
  ## 0.10.1
4
8
 
5
9
  - Sanitize `Sentry::TransactionEvent#spans` [#27](https://github.com/mrexox/sentry-sanitizer/pull/27)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sentry-sanitizer (0.10.1)
4
+ sentry-sanitizer (0.10.2)
5
5
  sentry-ruby (>= 6.0, < 8.0.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -21,7 +21,7 @@ Currently this gem provides following features
21
21
  Add this line to your application's Gemfile:
22
22
 
23
23
  ```ruby
24
- gem 'sentry-sanitizer', '~> 0.10.0'
24
+ gem 'sentry-sanitizer', '~> 0.10.2'
25
25
  ```
26
26
 
27
27
  And then in the terminal:
@@ -50,7 +50,7 @@ Sentry.init do |config|
50
50
  config.sanitize.fields = %w[password super_secret_token]
51
51
 
52
52
  # Use custom filter (e.g. from activesupport).
53
- # Must implement #filter(array_or_hash) and #filter_param(key, value)
53
+ # Must implement #filter(hash) and #filter_param(key, value)
54
54
  # Don't set 'config.sanitize.fields' if using this.
55
55
  config.sanitize.filter = ActiveSupport::ParameterFilter.new(
56
56
  Rails.application.config.filter_parameters, mask: "[FILTERED]"
@@ -93,8 +93,10 @@ module Sentry
93
93
 
94
94
  def sanitize_data(data)
95
95
  case data
96
- when Hash, Array
96
+ when Hash
97
97
  filter.filter(data)
98
+ when Array
99
+ data.map { |element| sanitize_data(element) }
98
100
  else
99
101
  data
100
102
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sentry
4
4
  module Sanitizer
5
- VERSION = "0.10.1"
5
+ VERSION = "0.10.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-sanitizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentine Kiselev