honeybadger 5.0.0.beta1 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/lib/honeybadger/agent.rb +7 -1
- data/lib/honeybadger/cli/heroku.rb +1 -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: b2a2ce33f6ebc41718667b59e4c9aafa07ff171b7ebaa01ec6f0dda61ee5f35b
|
4
|
+
data.tar.gz: 3c84dc54194ffaaf5c5623048de44d6a9c22e64684c877b16c725836a63f5017
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4733b0ed3b93686aa2441d0e24e07535de45130da9145bf53efae6b0e3a6ccb86b322f72fcaea1cc307a6714f3a1d9c3ac106492b6d95ddabda861df940cbae6
|
7
|
+
data.tar.gz: b7aed73d5785b846faa2186a8d6f6549a43c8fdc33a42f3b52db93c4e3ba7cc6b2c4768e31ad5904fd94add2659d73361bf17de1278c025c67a82ffc1143f0b1
|
data/CHANGELOG.md
CHANGED
@@ -5,8 +5,11 @@ adheres to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
-
## [5.0.0
|
8
|
+
## [5.0.0] - 2022-10-18
|
9
9
|
### Changed
|
10
|
+
- `Honeybadger.notify` is now idempotent; it will skip reporting exception
|
11
|
+
objects that have already been reported before, and simply return the existing
|
12
|
+
notice ID.
|
10
13
|
- Honeybadger is now initialized before Rails' initializers, allowing you to
|
11
14
|
report errors raised during startup. Config added via `Honeybadger.configure`
|
12
15
|
is added later in the Rails initialization process.
|
@@ -14,6 +17,10 @@ adheres to [Semantic Versioning](http://semver.org/).
|
|
14
17
|
### Added
|
15
18
|
- Support Rails 7 error reporting interface (#443)
|
16
19
|
|
20
|
+
### Fixed
|
21
|
+
- Replace deployhook with release webhook (#444)
|
22
|
+
See https://blog.heroku.com/deployhooks-sunset
|
23
|
+
|
17
24
|
## [4.12.2] - 2022-08-15
|
18
25
|
### Fixed
|
19
26
|
- 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))
|
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.0
|
4
|
+
version: 5.0.0
|
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-18 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:
|