sentry-sanitizer 0.8.1 → 0.8.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 +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +14 -7
- data/lib/sentry/sanitizer/cleaner.rb +1 -1
- data/lib/sentry/sanitizer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0521397fec4fd1c3fc13ea82b40c927ea565706d4d47e5bb6ad088e03a1eb7ef'
|
|
4
|
+
data.tar.gz: fa306a84451371f29f70c7f9afe4af569c1cf80cb201a3ac590e893fcb0d3a0e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fba88cdfacfcda7e2fb39bdfd086fae611aee595c48cd48338afb1f47258eb2e01ed7ac5ca3a31a7476ad843486837aefda467b968b02bcb6a96e4c3c5aa314e
|
|
7
|
+
data.tar.gz: 69e36efb3ef1cbe7ab2323697fdfe368b5ba66b8b05aa74ae7d7ebe9b10a0f94e76c273846f9a410c3495b1beb877bf9fd926c6cb119a7c2c42e8075309ce963
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
sentry-sanitizer (0.8.
|
|
4
|
+
sentry-sanitizer (0.8.2)
|
|
5
5
|
sentry-ruby (>= 5.3, < 7.0.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -50,7 +50,7 @@ GEM
|
|
|
50
50
|
parser (>= 3.3.7.2)
|
|
51
51
|
prism (~> 1.4)
|
|
52
52
|
ruby-progressbar (1.13.0)
|
|
53
|
-
sentry-ruby (6.
|
|
53
|
+
sentry-ruby (6.1.1)
|
|
54
54
|
bigdecimal
|
|
55
55
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
56
56
|
simplecov (0.18.5)
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
](https://github.com/mrexox/sentry-sanitizer/actions/workflows/ci-linux.yml)
|
|
2
2
|
[](https://badge.fury.io/rb/sentry-sanitizer)
|
|
3
3
|
[](https://coveralls.io/github/mrexox/sentry-sanitizer?branch=master)
|
|
4
4
|
|
|
@@ -14,11 +14,10 @@ Currently this gem provides following features
|
|
|
14
14
|
- [x] Sanitizing cookies
|
|
15
15
|
- [x] Sanitizing query string
|
|
16
16
|
- [x] Sanitizing extras ([see](https://docs.sentry.io/platforms/ruby/enriching-events/context/#additional-data) `Sentry.set_extras`)
|
|
17
|
+
- [x] Sanitizing breadcrumb data fields
|
|
17
18
|
|
|
18
19
|
## Installation
|
|
19
20
|
|
|
20
|
-
:warning: Please, don't use `0.1.*` version as it was experimental and not usable at all.
|
|
21
|
-
|
|
22
21
|
Add this line to your application's Gemfile:
|
|
23
22
|
|
|
24
23
|
```ruby
|
|
@@ -66,15 +65,23 @@ Sentry.init do |config|
|
|
|
66
65
|
end
|
|
67
66
|
```
|
|
68
67
|
|
|
69
|
-
## Development
|
|
68
|
+
## Development hints
|
|
69
|
+
|
|
70
|
+
Install dependencies
|
|
71
|
+
|
|
72
|
+
$ bin/setup
|
|
73
|
+
|
|
74
|
+
Experiment with the code in IRB
|
|
75
|
+
|
|
76
|
+
$ bin/console
|
|
70
77
|
|
|
71
|
-
|
|
78
|
+
Run tests
|
|
72
79
|
|
|
73
|
-
|
|
80
|
+
$ bin/rake test
|
|
74
81
|
|
|
75
82
|
## Contributing
|
|
76
83
|
|
|
77
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/mrexox/sentry-sanitizer.
|
|
84
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/mrexox/sentry-sanitizer/issues.
|
|
78
85
|
|
|
79
86
|
## License
|
|
80
87
|
|
|
@@ -65,7 +65,7 @@ module Sentry
|
|
|
65
65
|
|
|
66
66
|
def sanitize_breadcrumb!(breadcrumb)
|
|
67
67
|
return unless breadcrumbs_json_data_fields.size.positive?
|
|
68
|
-
return unless breadcrumb.data
|
|
68
|
+
return unless breadcrumb.data.is_a? Hash
|
|
69
69
|
|
|
70
70
|
breadcrumbs_json_data_fields.each do |field|
|
|
71
71
|
next unless breadcrumb.data.key?(field)
|