sentry-raven 2.7.2 → 2.7.3
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 +5 -5
- data/changelog.md +6 -0
- data/docs/integrations/rails.rst +4 -26
- data/lib/raven/integrations/rails/active_job.rb +5 -1
- data/lib/raven/transports/http.rb +4 -2
- data/lib/raven/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 400e642f148227a40dcf81d00af5513e2787b35c
|
4
|
+
data.tar.gz: a4c90987e4d11f40234ada594208b109dccf4681
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71ed2517a4a5a34397125108bbbac441a2b9aa2610684f70a2578e64a56775755373eef4369194605747a1498da3936e27fbbb4e3e78961edd102fec970bdbcb
|
7
|
+
data.tar.gz: 3c33543e522a1f06f00967175c104fe515c71b60ce62994647e1d65c4d6fefcca56cabeb940450d08ca41c3384d48d0260fab1db378c260b438eae52b43258dd
|
data/changelog.md
CHANGED
data/docs/integrations/rails.rst
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Ruby on Rails
|
2
2
|
=============
|
3
3
|
|
4
|
-
In Rails, all uncaught exceptions will be automatically reported.
|
4
|
+
In Rails, all uncaught exceptions will be automatically reported.
|
5
5
|
|
6
6
|
We support Rails 4 and newer.
|
7
7
|
|
@@ -56,29 +56,7 @@ Params and sessions
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
|
60
|
-
|
59
|
+
Caveats
|
60
|
+
-------
|
61
61
|
|
62
|
-
|
63
|
-
binding to session ``after_persisting`` and ``after_destroy`` events in
|
64
|
-
``user_session.rb``:
|
65
|
-
|
66
|
-
.. sourcecode:: ruby
|
67
|
-
|
68
|
-
class UserSession < Authlogic::Session::Base
|
69
|
-
# events binding
|
70
|
-
after_persisting :raven_set_user_context
|
71
|
-
after_destroy :raven_clear_user_context
|
72
|
-
|
73
|
-
def raven_set_user_context
|
74
|
-
Raven.user_context({
|
75
|
-
'id' => self.user.id,
|
76
|
-
'email' => self.user.email,
|
77
|
-
'username' => self.user.username
|
78
|
-
})
|
79
|
-
end
|
80
|
-
|
81
|
-
def raven_clear_user_context
|
82
|
-
Raven.user_context({})
|
83
|
-
end
|
84
|
-
end
|
62
|
+
Currently, custom exception applications (`config.exceptions_app`) are not supported. If you are using a custom exception app, you must manually integrate Raven yourself.
|
@@ -28,7 +28,11 @@ module Raven
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def already_supported_by_specific_integration?(job)
|
31
|
-
|
31
|
+
if ::Rails.version.to_f < 5.0
|
32
|
+
ALREADY_SUPPORTED_SENTRY_ADAPTERS.include?(job.class.queue_adapter.to_s)
|
33
|
+
else
|
34
|
+
ALREADY_SUPPORTED_SENTRY_ADAPTERS.include?(job.class.queue_adapter.class.to_s)
|
35
|
+
end
|
32
36
|
end
|
33
37
|
|
34
38
|
def raven_context(job)
|
@@ -39,7 +39,9 @@ module Raven
|
|
39
39
|
def set_conn
|
40
40
|
configuration.logger.debug "Raven HTTP Transport connecting to #{configuration.server}"
|
41
41
|
|
42
|
-
|
42
|
+
proxy = configuration.public_send(:proxy)
|
43
|
+
|
44
|
+
Faraday.new(configuration.server, :ssl => ssl_configuration, :proxy => proxy) do |builder|
|
43
45
|
configuration.faraday_builder.call(builder) if configuration.faraday_builder
|
44
46
|
builder.response :raise_error
|
45
47
|
builder.options.merge! faraday_opts
|
@@ -50,7 +52,7 @@ module Raven
|
|
50
52
|
|
51
53
|
# TODO: deprecate and replace where possible w/Faraday Builder
|
52
54
|
def faraday_opts
|
53
|
-
[:
|
55
|
+
[:timeout, :open_timeout].each_with_object({}) do |opt, memo|
|
54
56
|
memo[opt] = configuration.public_send(opt) if configuration.public_send(opt)
|
55
57
|
end
|
56
58
|
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: 2.7.
|
4
|
+
version: 2.7.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: 2018-
|
11
|
+
date: 2018-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.
|
139
|
+
rubygems_version: 2.5.1
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: A gem that provides a client interface for the Sentry error logger
|