sentry-raven 2.6.2 → 2.6.3

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: e5313730cce508b69c1afd6644b18e93b3788a1a
4
- data.tar.gz: 60e2dac36f17ac77751f25136b48f00cfc240bea
3
+ metadata.gz: 29f898ece848c6fd9bf471b62dbfb990c41f30a1
4
+ data.tar.gz: d290053185690206a198fb29ace1e6443534be7b
5
5
  SHA512:
6
- metadata.gz: a7fb908a5f7512332ef1a68d02c3d88f70fc3423623e0e120980de7ceac82f192f3ea54bf0d91acc94fb0a6c7c8ab61b4ace385257641d7ea4b0d90508a2d02b
7
- data.tar.gz: 0d28fff5c9edab8b8684123ab7d2d0b7e20e70d37245985adc878df29b7a6ea434d2b01ec1c0fdca473714cce2f71de6604ffd7c32bd6164bc8e0f77a60697eb
6
+ metadata.gz: 7eb80ee3da6a36d2e8304dfcbf8f5d339340d401543d4c8fd9ae9340c923e49a889e6d0266c55bbc316183c882b595fba05c52e8422c560d36d4a2c2f049784a
7
+ data.tar.gz: a4489464ff92761b746fd3b6be2ef384eb06a2d365ccf6e386e5feb46ca25fcb92ed8e4970e9aef5e684cf4b56d61f83ea6ca8dbacf344ece036227c0145425e
@@ -1,3 +1,10 @@
1
+ 2.6.3
2
+ -----
3
+
4
+ * BUGFIX: Fixed typo in the Heroku warning [@greysteil, #728]
5
+ * BUGFIX: Swallow IOErrors when reading the Rack request body [@nateberkopec]
6
+ * BUGFIX: Fix invalid UTF-8/circular references when using async [@nateberkopec, #730]
7
+
1
8
  2.6.2
2
9
  -----
3
10
 
@@ -39,7 +39,7 @@ Optional settings
39
39
 
40
40
  class SentryJob < ActiveJob::Base
41
41
  queue_as :default
42
-
42
+
43
43
  # Important! Otherwise, we can get caught in an infinite loop.
44
44
  rescue_from(ActiveJob::DeserializationError) { |e| Rails.logger.error e }
45
45
 
@@ -118,6 +118,14 @@ Optional settings
118
118
 
119
119
  The client scrubs the HTTP "Authorization" header of requests before sending them to Sentry, to prevent sensitive credentials from being sent. You can specify additional HTTP headers to ignore:
120
120
 
121
+ You can also provide regex-like strings to the sanitizer:
122
+
123
+ .. code-block:: ruby
124
+
125
+ config.sanitize_fields = ["my_field", "foo(.*)?bar]
126
+
127
+ It's also possible to remove HTTP header values which match a list:
128
+
121
129
  .. code-block:: ruby
122
130
 
123
131
  config.sanitize_http_headers = ["Via", "Referer", "User-Agent", "Server", "From"]
@@ -158,3 +158,19 @@ can be supplied:
158
158
  'email' => 'clever-girl'
159
159
  }
160
160
  }
161
+
162
+ Many Instances
163
+ --------------
164
+
165
+ It is possible to have many different instances and configurations of the Raven
166
+ client running at once. See the delegation pattern in ``base.rb`` for more
167
+ information about how the ``Raven`` module delegates calls to the "main" instance.
168
+
169
+ .. code-block:: ruby
170
+
171
+ Raven.capture # capture, sent to the main instance
172
+
173
+ # You can create as many instances as you like. Provide a context and config.
174
+ instance = Raven::Instance.new(Raven::Context.new, Raven::Configuration.new)
175
+
176
+ Currently, all integrations use the "main" instance.
@@ -318,7 +318,7 @@ module Raven
318
318
  end
319
319
 
320
320
  def heroku_dyno_metadata_message
321
- "You are running on Heroku but haven't enabled Dyno Metadata. For Sentry's"\
321
+ "You are running on Heroku but haven't enabled Dyno Metadata. For Sentry's "\
322
322
  "release detection to work correctly, please run `heroku labs:enable runtime-dyno-metadata`"
323
323
  end
324
324
 
@@ -279,7 +279,8 @@ module Raven
279
279
  end
280
280
 
281
281
  def to_json_compatible
282
- JSON.parse(JSON.generate(to_hash))
282
+ cleaned_hash = async_json_processors.reduce(to_hash) { |a, e| e.process(a) }
283
+ JSON.parse(JSON.generate(cleaned_hash))
283
284
  end
284
285
 
285
286
  # For cross-language compat
@@ -302,5 +303,12 @@ module Raven
302
303
  :forwarded_for => context.rack_env["HTTP_X_FORWARDED_FOR"]
303
304
  ).calculate_ip
304
305
  end
306
+
307
+ def async_json_processors
308
+ [
309
+ Raven::Processor::RemoveCircularReferences,
310
+ Raven::Processor::UTF8Conversion
311
+ ].map { |v| v.new(self) }
312
+ end
305
313
  end
306
314
  end
@@ -90,6 +90,8 @@ module Raven
90
90
  request.body.rewind
91
91
  data
92
92
  end
93
+ rescue IOError => ex
94
+ ex.message
93
95
  end
94
96
 
95
97
  def format_headers_for_sentry(env_hash)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Raven
3
3
  # Freezing this constant breaks in 1.9.x
4
- VERSION = "2.6.2" # rubocop:disable Style/MutableConstant
4
+ VERSION = "2.6.3" # rubocop:disable Style/MutableConstant
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-raven
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-02 00:00:00.000000000 Z
11
+ date: 2017-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday