sentry-sanitizer 0.1.0 → 0.1.1

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: d2531529a81144119d0073bb8cadf32b44b98bf7704e78e5bdb7005db626a57b
4
- data.tar.gz: 0cad872dcaff97f50a97739794b9c625bcad81aad616c6fb2f59b568fd3b938c
3
+ metadata.gz: 828e9c8127ee2cf145f56ddd014f1c35f4b4994696cd2b7672e7cd8729a994a4
4
+ data.tar.gz: 2e26bb264dc53d196f9e601ec1372ea9b791c5c2391380147a3b7f04117c65db
5
5
  SHA512:
6
- metadata.gz: 9ecae6a901360c2a74f81e4d682ce6531bd98bf411aa6a68b84617b85dec1d90bcec41c730a4dfecc2e534afc8676ddeb3247c24b5f33e5dbb6f0e230bbed354
7
- data.tar.gz: ec6e59364de9fd75d8a02f879c4449259ecbd4e895f9bcfe35d3be8cde4b5907aab4e9f3af634b5deee2c8137e2fd50c624c7960bf0978005ee30a4f22f38ffb
6
+ metadata.gz: 596f541d0d381bc538f8f8129b2bd34186358f427eccfb9d72f96db140323d52b61dfcdc8d3ab3d43c78485c3cd9b2b85b2a30ed453b2c97e1a695674c010dfe
7
+ data.tar.gz: adde04a80883da1e655715f40c7a05bf6abf8408ec8deecd2830927f37ca1a556ae148b8fd39251e65791a7ef2362daa8e0e720cd2da97e980384a35baba287b
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+ .ruby-version
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
@@ -13,7 +13,7 @@ module Sentry
13
13
  X-Xsrf-Token
14
14
  ].freeze
15
15
 
16
- private_constant :SENSITIVE_HEADERS
16
+ private_constant :DEFAULT_SENSITIVE_HEADERS
17
17
 
18
18
  def initialize(config)
19
19
  @fields = config.fields || []
@@ -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
- super
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
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Sanitizer
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  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.0
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