sentry-raven 0.15.5 → 0.15.6
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fff666c279a1df213e55db40a43a92d1d56e191
|
4
|
+
data.tar.gz: 6a14c52214fb0bcd5d17cd1cc34b97da444e8a39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff2ac5a67aa7ce889707f05080aae60b6cceda1e2d16d4371b5da717727f91c542408887b83eadc9d41aff9746d336de7d640ba9d0d4caa5997f918d0467bd84
|
7
|
+
data.tar.gz: 405cf1e14b2b10e0a7c2fbc7ec114532e5de28fd0a95a16d69d64694f80517ca3bef012624c554f0b100aebd69263f3b819714195341b3a553ad7f98d1dc3a72
|
@@ -19,14 +19,22 @@ module Raven
|
|
19
19
|
config.project_root ||= ::Rails.root
|
20
20
|
config.release = config.detect_release # if project_root has changed, need to re-check
|
21
21
|
end
|
22
|
+
end
|
22
23
|
|
24
|
+
config.after_initialize do
|
23
25
|
if Raven.configuration.catch_debugged_exceptions
|
26
|
+
require 'raven/integrations/rails/middleware/debug_exceptions_catcher'
|
24
27
|
if defined?(::ActionDispatch::DebugExceptions)
|
25
|
-
|
26
|
-
::ActionDispatch::DebugExceptions.send(:include, Raven::Rails::Middleware::DebugExceptionsCatcher)
|
28
|
+
exceptions_class = ::ActionDispatch::DebugExceptions
|
27
29
|
elsif defined?(::ActionDispatch::ShowExceptions)
|
28
|
-
|
29
|
-
|
30
|
+
exceptions_class = ::ActionDispatch::ShowExceptions
|
31
|
+
end
|
32
|
+
unless exceptions_class.nil?
|
33
|
+
if RUBY_VERSION.to_f < 2.0
|
34
|
+
exceptions_class.send(:include, Raven::Rails::Middleware::OldDebugExceptionsCatcher)
|
35
|
+
else
|
36
|
+
exceptions_class.send(:prepend, Raven::Rails::Middleware::DebugExceptionsCatcher)
|
37
|
+
end
|
30
38
|
end
|
31
39
|
end
|
32
40
|
end
|
@@ -2,14 +2,27 @@ module Raven
|
|
2
2
|
class Rails
|
3
3
|
module Middleware
|
4
4
|
module DebugExceptionsCatcher
|
5
|
+
def render_exception(env_or_request, exception)
|
6
|
+
begin
|
7
|
+
env = env_or_request.respond_to?(:env) ? env_or_request.env : env_or_request
|
8
|
+
Raven::Rack.capture_exception(exception, env)
|
9
|
+
rescue # rubocop:disable Lint/HandleExceptions
|
10
|
+
end
|
11
|
+
super
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
module OldDebugExceptionsCatcher
|
5
16
|
def self.included(base)
|
6
17
|
base.send(:alias_method_chain, :render_exception, :raven)
|
7
18
|
end
|
8
19
|
|
9
20
|
def render_exception_with_raven(env_or_request, exception)
|
10
|
-
|
11
|
-
|
12
|
-
|
21
|
+
begin
|
22
|
+
env = env_or_request.respond_to?(:env) ? env_or_request.env : env_or_request
|
23
|
+
Raven::Rack.capture_exception(exception, env)
|
24
|
+
rescue # rubocop:disable Lint/HandleExceptions
|
25
|
+
end
|
13
26
|
render_exception_without_raven(env_or_request, exception)
|
14
27
|
end
|
15
28
|
end
|
data/lib/raven/version.rb
CHANGED
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: 0.15.
|
4
|
+
version: 0.15.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sentry Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|