honeybadger 5.0.0.beta1 → 5.0.1
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 +4 -4
- data/CHANGELOG.md +16 -1
- data/lib/honeybadger/agent.rb +7 -1
- data/lib/honeybadger/cli/heroku.rb +1 -1
- data/lib/honeybadger/config/defaults.rb +2 -1
- data/lib/honeybadger/plugins/rails.rb +0 -1
- data/lib/honeybadger/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce4d8e948a9b1aa7d8edf4b1e77767fc7909f5877b46788de9ef925c58face3b
|
4
|
+
data.tar.gz: 42a7d821dd8ce1d0f6d670e1f7391cd1fd5bfa310b57b2945516c008ade0e1cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/honeybadger/agent.rb
CHANGED
@@ -122,7 +122,9 @@ module Honeybadger
|
|
122
122
|
opts = opts.dup
|
123
123
|
|
124
124
|
if exception_or_opts.is_a?(Exception)
|
125
|
-
|
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
|
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'
|
31
|
+
'Sinatra::NotFound',
|
32
|
+
'Sidekiq::JobRetry::Skip'].map(&:freeze).freeze
|
32
33
|
|
33
34
|
DEVELOPMENT_ENVIRONMENTS = ['development', 'test', 'cucumber'].map(&:freeze).freeze
|
34
35
|
|
data/lib/honeybadger/version.rb
CHANGED
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.
|
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-
|
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:
|
154
|
+
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubygems_version: 3.2.3
|
157
157
|
signing_key:
|