honeybadger 5.0.0.beta1 → 5.0.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: d8c1f4882921eae85434c329f8d6a8fa8aaac7c0ad31bd7cef40e3e9930b5502
4
- data.tar.gz: a7d0336a1bd9aa7bae7e5523c801a226e37faa9f55824b41b0c12b8310b7e527
3
+ metadata.gz: ce4d8e948a9b1aa7d8edf4b1e77767fc7909f5877b46788de9ef925c58face3b
4
+ data.tar.gz: 42a7d821dd8ce1d0f6d670e1f7391cd1fd5bfa310b57b2945516c008ade0e1cf
5
5
  SHA512:
6
- metadata.gz: ebb6062a2fa493e86b80ad4019bb4d04f52f1b241ff2eb7219a54385e49b45bf7a86f4c6f373c3c147a65d0eda9308931c813916961da7a122e2e2a9319d975f
7
- data.tar.gz: 8f9a0f61ab7d97b6abb9660059b91689a47ebb91f770e75aa0688a10352d992e8881966034f34f6a90911d50089134a5b0a5e8dbf7ff674c93d28501aed2e367
6
+ metadata.gz: 55b094597032dab7dc362ae2f31ed35229ccfc1624abb314ceb9d1b52a0dd3ad6d2dda93965427559695de8161d95728fdba0c63878401493db2110d752e9d84
7
+ data.tar.gz: 92e37f0cf6da8732499bb0a4fc98d3f9e8b637a5c3d60d9ae5769e8028c59859367ca5f365dbc53de9bf6c3cc656ed0792090eaa7a0fea521dca4f54b1d469aa
data/CHANGELOG.md CHANGED
@@ -5,8 +5,19 @@ adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
- ## [5.0.0.beta1] - 2022-08-15
8
+ ## [5.0.1] - 2022-10-27
9
+ ### Fixed
10
+ - Ignore `Sidekiq::JobRetry` skip exception. Since support was added for Rails 7
11
+ error reporting interface these exceptions are being reported in addition to
12
+ the exception that caused the job to be retried. Mike Perham says these
13
+ exceptions can safely be ignored.
14
+ See https://github.com/rails/rails/pull/43625#issuecomment-1071574110
15
+
16
+ ## [5.0.0] - 2022-10-18
9
17
  ### Changed
18
+ - `Honeybadger.notify` is now idempotent; it will skip reporting exception
19
+ objects that have already been reported before, and simply return the existing
20
+ notice ID.
10
21
  - Honeybadger is now initialized before Rails' initializers, allowing you to
11
22
  report errors raised during startup. Config added via `Honeybadger.configure`
12
23
  is added later in the Rails initialization process.
@@ -14,6 +25,10 @@ adheres to [Semantic Versioning](http://semver.org/).
14
25
  ### Added
15
26
  - Support Rails 7 error reporting interface (#443)
16
27
 
28
+ ### Fixed
29
+ - Replace deployhook with release webhook (#444)
30
+ See https://blog.heroku.com/deployhooks-sunset
31
+
17
32
  ## [4.12.2] - 2022-08-15
18
33
  ### Fixed
19
34
  - Fix a bug where the auto-detected revision is blank instead of nil
@@ -122,7 +122,9 @@ module Honeybadger
122
122
  opts = opts.dup
123
123
 
124
124
  if exception_or_opts.is_a?(Exception)
125
- return nil if exception_or_opts.instance_variable_get(:@__hb_handled)
125
+ already_reported_notice_id = exception_or_opts.instance_variable_get(:@__hb_notice_id)
126
+ return already_reported_notice_id if already_reported_notice_id
127
+
126
128
  opts[:exception] = exception_or_opts
127
129
  elsif exception_or_opts.respond_to?(:to_hash)
128
130
  opts.merge!(exception_or_opts.to_hash)
@@ -172,6 +174,10 @@ module Honeybadger
172
174
  push(notice)
173
175
  end
174
176
 
177
+ if exception_or_opts.is_a?(Exception)
178
+ exception_or_opts.instance_variable_set(:@__hb_notice_id, notice.id) unless exception_or_opts.frozen?
179
+ end
180
+
175
181
  notice.id
176
182
  end
177
183
 
@@ -23,7 +23,7 @@ module Honeybadger
23
23
  exit(1)
24
24
  end
25
25
 
26
- cmd = %Q(heroku addons:create deployhooks:http --url="https://api.honeybadger.io/v1/deploys?deploy[environment]=#{rails_env}&deploy[local_username]={{user}}&deploy[revision]={{head}}&api_key=#{api_key}"#{app ? " --app #{app}" : ''})
26
+ cmd = %Q(heroku webhooks:add -i api:release -l notify -u "https://api.honeybadger.io/v1/deploys/heroku?environment=#{rails_env}&api_key=#{api_key}"#{app ? " --app #{app}" : ''})
27
27
 
28
28
  say("Running: `#{cmd}`")
29
29
  say(run(cmd))
@@ -28,7 +28,8 @@ module Honeybadger
28
28
  'Rack::QueryParser::InvalidParameterError',
29
29
  'CGI::Session::CookieStore::TamperedWithCookie',
30
30
  'Mongoid::Errors::DocumentNotFound',
31
- 'Sinatra::NotFound'].map(&:freeze).freeze
31
+ 'Sinatra::NotFound',
32
+ 'Sidekiq::JobRetry::Skip'].map(&:freeze).freeze
32
33
 
33
34
  DEVELOPMENT_ENVIRONMENTS = ['development', 'test', 'cucumber'].map(&:freeze).freeze
34
35
 
@@ -36,7 +36,6 @@ module Honeybadger
36
36
  tags = ["severity:#{severity}", "handled:#{handled}"]
37
37
  tags << "source:#{source}" if source
38
38
  Honeybadger.notify(exception, context: context, tags: tags)
39
- exception.instance_variable_set(:@__hb_handled, true)
40
39
  end
41
40
  end
42
41
 
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # The current String Honeybadger version.
3
- VERSION = '5.0.0.beta1'.freeze
3
+ VERSION = '5.0.1'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeybadger
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.beta1
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Honeybadger Industries LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-15 00:00:00.000000000 Z
11
+ date: 2022-10-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Make managing application errors a more pleasant experience.
14
14
  email:
@@ -149,9 +149,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
149
149
  version: 2.3.0
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - ">"
152
+ - - ">="
153
153
  - !ruby/object:Gem::Version
154
- version: 1.3.1
154
+ version: '0'
155
155
  requirements: []
156
156
  rubygems_version: 3.2.3
157
157
  signing_key: