sentry-raven 2.7.2 → 2.7.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
- SHA256:
3
- metadata.gz: 65c91464c7999bd385921487a02e931b3f178412bd22d43ca614c289c6d72c6d
4
- data.tar.gz: 789a54b1f5c20db0246ce310a8c7993a9472b8594a7feae8c18843c56ca6963d
2
+ SHA1:
3
+ metadata.gz: 400e642f148227a40dcf81d00af5513e2787b35c
4
+ data.tar.gz: a4c90987e4d11f40234ada594208b109dccf4681
5
5
  SHA512:
6
- metadata.gz: 6f7b6f3d3cb85364b94892c851c8c9dd0ebe17ea21438f596fafe805125275b6acb3e3bc9ba93850c6a0a2d5b1ce5429db37c29604841b4792cc795be50cc870
7
- data.tar.gz: 77e29bf73bb328e51844ffb067730511fd130765c798d5611de1c714681d9fa6a88a552560b097a3cc2074387d2a965c381f6f51125fde81ed8b2e7b3f5900bf
6
+ metadata.gz: 71ed2517a4a5a34397125108bbbac441a2b9aa2610684f70a2578e64a56775755373eef4369194605747a1498da3936e27fbbb4e3e78961edd102fec970bdbcb
7
+ data.tar.gz: 3c33543e522a1f06f00967175c104fe515c71b60ce62994647e1d65c4d6fefcca56cabeb940450d08ca41c3384d48d0260fab1db378c260b438eae52b43258dd
@@ -1,3 +1,9 @@
1
+ 2.7.3
2
+ -----
3
+
4
+ * BUGFIX: Fix proxy settings for Faraday [@Strnadj, #820]
5
+ * BUGFIX: Fix duplicated events in ActiveJob w/DelayedJob and Sidekiq [@BrentWheeldon, #815]
6
+
1
7
  2.7.2
2
8
  -----
3
9
 
@@ -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
- Authlogic
60
- ---------
59
+ Caveats
60
+ -------
61
61
 
62
- When using Authlogic for authentication, you can provide user context by
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
- ALREADY_SUPPORTED_SENTRY_ADAPTERS.include?(job.class.queue_adapter.to_s)
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
- Faraday.new(configuration.server, :ssl => ssl_configuration) do |builder|
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
- [:proxy, :timeout, :open_timeout].each_with_object({}) do |opt, memo|
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
@@ -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.7.2" # rubocop:disable Style/MutableConstant
4
+ VERSION = "2.7.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.7.2
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-02-02 00:00:00.000000000 Z
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.7.3
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