honeybadger 4.6.0 → 4.7.0
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 +11 -0
- data/README.md +2 -1
- data/lib/honeybadger/agent.rb +5 -3
- data/lib/honeybadger/breadcrumbs/active_support.rb +10 -1
- data/lib/honeybadger/notice.rb +1 -0
- data/lib/honeybadger/version.rb +1 -1
- data/vendor/capistrano-honeybadger/lib/capistrano/tasks/deploy.cap +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c106736f2bbc8d50ef833e9672693b6261cfb7c5852273caad63d2bd77c4e6c6
|
|
4
|
+
data.tar.gz: 1a23b8213a91d8f2cd0c58e33815bc78dec8c6cb0b361c6ae246b542667d1ab3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b5fa74f25ec9d2acb5dcfb9743900015973c30f83082a8d67016e70afd767021c75dea3afb4179af365b35ebacd359f866fe72bec3ab59b1b9698a986cb1b8c8
|
|
7
|
+
data.tar.gz: d748ce7cbc8f5de4241d30bca391a1bcfb80e336720e1f8d7430af034b265898e4b76491cfabe36525b65ddcb7aa7956664b3648d0adf9642c9d5f4b14d9bf12
|
data/CHANGELOG.md
CHANGED
|
@@ -5,11 +5,22 @@ adheres to [Semantic Versioning](http://semver.org/).
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [4.7.0] - 2020-06-02
|
|
9
|
+
### Fixed
|
|
10
|
+
- Alias `Notice#controller=` as `Notice#component=`
|
|
11
|
+
- Fix Rails 6.1 deprecation warning with `ActiveRecord::Base.connection_config`
|
|
12
|
+
- Fix agent where breadcrumbs.enabled = true and local_context = true
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- Add `honeybadger_skip_rails_load` Capistrano option to skip rails load on
|
|
16
|
+
deployment notification (#355) -@NielsKSchjoedt
|
|
17
|
+
|
|
8
18
|
## [4.6.0] - 2020-03-12
|
|
9
19
|
### Fixed
|
|
10
20
|
- Fixed issue where Sidekiq.attempt_threshold was triggering 2 attempts ahead
|
|
11
21
|
of the setting
|
|
12
22
|
- Dup notify opts before mutating (#345)
|
|
23
|
+
|
|
13
24
|
### Changed
|
|
14
25
|
- Breadcrumbs on by default
|
|
15
26
|
- Added Faktory plugin -@scottrobertson
|
data/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Honeybadger for Ruby
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
|
+

|
|
4
5
|
[](http://badge.fury.io/rb/honeybadger)
|
|
5
6
|
[](https://dependabot.com/compatibility-score.html?dependency-name=honeybadger&package-manager=bundler&version-scheme=semver)
|
|
6
7
|
|
data/lib/honeybadger/agent.rb
CHANGED
|
@@ -63,13 +63,15 @@ module Honeybadger
|
|
|
63
63
|
end
|
|
64
64
|
|
|
65
65
|
@context = opts.delete(:context)
|
|
66
|
-
|
|
66
|
+
local_context = opts.delete(:local_context)
|
|
67
|
+
|
|
68
|
+
@config ||= Config.new(opts)
|
|
69
|
+
|
|
70
|
+
if local_context
|
|
67
71
|
@context ||= ContextManager.new
|
|
68
72
|
@breadcrumbs = Breadcrumbs::Collector.new(config)
|
|
69
73
|
end
|
|
70
74
|
|
|
71
|
-
@config ||= Config.new(opts)
|
|
72
|
-
|
|
73
75
|
init_worker
|
|
74
76
|
end
|
|
75
77
|
|
|
@@ -18,7 +18,7 @@ module Honeybadger
|
|
|
18
18
|
select_keys: [:sql, :name, :connection_id, :cached],
|
|
19
19
|
transform: lambda do |data|
|
|
20
20
|
if data[:sql]
|
|
21
|
-
adapter =
|
|
21
|
+
adapter = active_record_connection_db_config[:adapter]
|
|
22
22
|
data[:sql] = Util::SQL.obfuscate(data[:sql], adapter)
|
|
23
23
|
end
|
|
24
24
|
data
|
|
@@ -103,6 +103,15 @@ module Honeybadger
|
|
|
103
103
|
}
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
+
private_class_method def self.active_record_connection_db_config
|
|
107
|
+
if ::ActiveRecord::Base.respond_to?(:connection_db_config)
|
|
108
|
+
# >= Rails 6.1
|
|
109
|
+
::ActiveRecord::Base.connection_db_config.configuration_hash
|
|
110
|
+
else
|
|
111
|
+
# < Rails 6.1
|
|
112
|
+
::ActiveRecord::Base.connection_config
|
|
113
|
+
end
|
|
114
|
+
end
|
|
106
115
|
end
|
|
107
116
|
end
|
|
108
117
|
end
|
data/lib/honeybadger/notice.rb
CHANGED
|
@@ -118,6 +118,7 @@ module Honeybadger
|
|
|
118
118
|
# The component (if any) which was used in this request (usually the controller).
|
|
119
119
|
attr_accessor :component
|
|
120
120
|
alias_method :controller, :component
|
|
121
|
+
alias_method :controller=, :component=
|
|
121
122
|
|
|
122
123
|
# The action (if any) that was called in this request.
|
|
123
124
|
attr_accessor :action
|
data/lib/honeybadger/version.rb
CHANGED
|
@@ -24,6 +24,7 @@ namespace :honeybadger do
|
|
|
24
24
|
|
|
25
25
|
api_key = fetch(:honeybadger_api_key, ENV['HONEYBADGER_API_KEY'])
|
|
26
26
|
options += ['--api-key', api_key] if api_key
|
|
27
|
+
options << '--skip-rails-load' if fetch(:honeybadger_skip_rails_load, false)
|
|
27
28
|
|
|
28
29
|
if fetch(:honeybadger_async_notify, false)
|
|
29
30
|
::SSHKit.config.command_map.prefix[:honeybadger].push(:nohup)
|
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: 4.
|
|
4
|
+
version: 4.7.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: 2020-
|
|
11
|
+
date: 2020-06-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Make managing application errors a more pleasant experience.
|
|
14
14
|
email:
|
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
153
153
|
- !ruby/object:Gem::Version
|
|
154
154
|
version: '0'
|
|
155
155
|
requirements: []
|
|
156
|
-
rubygems_version: 3.
|
|
156
|
+
rubygems_version: 3.1.2
|
|
157
157
|
signing_key:
|
|
158
158
|
specification_version: 4
|
|
159
159
|
summary: Error reports you can be happy about.
|