sentry-sanitizer 0.1.0 → 0.1.1
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/.gitignore +1 -0
- data/Gemfile.lock +51 -0
- data/lib/sentry/sanitizer/cleaner.rb +1 -1
- data/lib/sentry/sanitizer/configuration.rb +6 -3
- data/lib/sentry/sanitizer/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 828e9c8127ee2cf145f56ddd014f1c35f4b4994696cd2b7672e7cd8729a994a4
|
4
|
+
data.tar.gz: 2e26bb264dc53d196f9e601ec1372ea9b791c5c2391380147a3b7f04117c65db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 596f541d0d381bc538f8f8129b2bd34186358f427eccfb9d72f96db140323d52b61dfcdc8d3ab3d43c78485c3cd9b2b85b2a30ed453b2c97e1a695674c010dfe
|
7
|
+
data.tar.gz: adde04a80883da1e655715f40c7a05bf6abf8408ec8deecd2830927f37ca1a556ae148b8fd39251e65791a7ef2362daa8e0e720cd2da97e980384a35baba287b
|
data/.gitignore
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
sentry-sanitizer (0.1.0)
|
5
|
+
sentry-ruby (~> 4.2.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
concurrent-ruby (1.1.8)
|
11
|
+
diff-lcs (1.4.4)
|
12
|
+
faraday (1.3.0)
|
13
|
+
faraday-net_http (~> 1.0)
|
14
|
+
multipart-post (>= 1.2, < 3)
|
15
|
+
ruby2_keywords
|
16
|
+
faraday-net_http (1.0.1)
|
17
|
+
multipart-post (2.1.1)
|
18
|
+
rake (10.5.0)
|
19
|
+
rspec (3.10.0)
|
20
|
+
rspec-core (~> 3.10.0)
|
21
|
+
rspec-expectations (~> 3.10.0)
|
22
|
+
rspec-mocks (~> 3.10.0)
|
23
|
+
rspec-core (3.10.1)
|
24
|
+
rspec-support (~> 3.10.0)
|
25
|
+
rspec-expectations (3.10.1)
|
26
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
27
|
+
rspec-support (~> 3.10.0)
|
28
|
+
rspec-mocks (3.10.2)
|
29
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
30
|
+
rspec-support (~> 3.10.0)
|
31
|
+
rspec-support (3.10.2)
|
32
|
+
ruby2_keywords (0.0.4)
|
33
|
+
sentry-ruby (4.2.0)
|
34
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
35
|
+
faraday (>= 1.0)
|
36
|
+
sentry-ruby-core (= 4.2.0)
|
37
|
+
sentry-ruby-core (4.2.0)
|
38
|
+
concurrent-ruby
|
39
|
+
faraday
|
40
|
+
|
41
|
+
PLATFORMS
|
42
|
+
ruby
|
43
|
+
|
44
|
+
DEPENDENCIES
|
45
|
+
bundler (>= 1.17)
|
46
|
+
rake (~> 10.0)
|
47
|
+
rspec (~> 3.0)
|
48
|
+
sentry-sanitizer!
|
49
|
+
|
50
|
+
BUNDLED WITH
|
51
|
+
2.1.4
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'sentry/configuration'
|
1
2
|
require 'sentry/sanitizer/cleaner'
|
2
3
|
|
3
4
|
module Sentry
|
@@ -5,7 +6,9 @@ module Sentry
|
|
5
6
|
class Configuration
|
6
7
|
# Allow adding multiple hooks for this extension
|
7
8
|
def before_send=(value)
|
8
|
-
|
9
|
+
unless value == false || value.respond_to?(:call)
|
10
|
+
raise ArgumentError, "before_send must be callable (or false to disable)"
|
11
|
+
end
|
9
12
|
|
10
13
|
return value if value == false
|
11
14
|
|
@@ -31,7 +34,7 @@ module Sentry
|
|
31
34
|
sanitize.fields = fields
|
32
35
|
end
|
33
36
|
|
34
|
-
def sanitize_http_headers(headers)
|
37
|
+
def sanitize_http_headers=(headers)
|
35
38
|
unless headers.is_a? Array
|
36
39
|
raise ArgumentError, 'sanitize_http_headers must be array'
|
37
40
|
end
|
@@ -39,7 +42,7 @@ module Sentry
|
|
39
42
|
sanitize.http_headers = headers
|
40
43
|
end
|
41
44
|
|
42
|
-
def sanitize_cookies(cookies)
|
45
|
+
def sanitize_cookies=(cookies)
|
43
46
|
unless [TrueClass, FalseClass].include?(cookies.class)
|
44
47
|
raise ArgumentError, 'sanitize_cookies must be boolean'
|
45
48
|
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Valentine Kiselev
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- ".rspec"
|
78
78
|
- ".travis.yml"
|
79
79
|
- Gemfile
|
80
|
+
- Gemfile.lock
|
80
81
|
- LICENSE.txt
|
81
82
|
- README.md
|
82
83
|
- Rakefile
|