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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0a903cc9a64fe0e5b5bcbfef32b81656217d38316ffc66d368d8cc8982bdc04
4
- data.tar.gz: fd4ff117b94da660a2039ebc106e7c29430834f3c691c6940cc1bc483dcbc0ac
3
+ metadata.gz: c106736f2bbc8d50ef833e9672693b6261cfb7c5852273caad63d2bd77c4e6c6
4
+ data.tar.gz: 1a23b8213a91d8f2cd0c58e33815bc78dec8c6cb0b361c6ae246b542667d1ab3
5
5
  SHA512:
6
- metadata.gz: e3f58753fa625545ffba12aaa7d9a86e3f8c7c8e3dc6ca1eaa518dd69e1636ef03d4a4b8a71677f34d8816166700102962e94288cb4e82913d1f5c2c0b6564f7
7
- data.tar.gz: 33459d61b1eae5ab575f65a0ff6b1b7e64a891538b4f5508fe3a45b72fa8c47830a55007858f8aaef97b1c5eaf22a6efdfa3e9147e53eda9a9cde8e854335f7f
6
+ metadata.gz: b5fa74f25ec9d2acb5dcfb9743900015973c30f83082a8d67016e70afd767021c75dea3afb4179af365b35ebacd359f866fe72bec3ab59b1b9698a986cb1b8c8
7
+ data.tar.gz: d748ce7cbc8f5de4241d30bca391a1bcfb80e336720e1f8d7430af034b265898e4b76491cfabe36525b65ddcb7aa7956664b3648d0adf9642c9d5f4b14d9bf12
@@ -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
- [![CircleCI](https://circleci.com/gh/honeybadger-io/honeybadger-ruby.svg?style=svg)](https://circleci.com/gh/honeybadger-io/honeybadger-ruby)
3
+ ![Ruby](https://github.com/honeybadger-io/honeybadger-ruby/workflows/Ruby/badge.svg)
4
+ ![JRuby](https://github.com/honeybadger-io/honeybadger-ruby/workflows/JRuby/badge.svg)
4
5
  [![Gem Version](https://badge.fury.io/rb/honeybadger.svg)](http://badge.fury.io/rb/honeybadger)
5
6
  [![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=honeybadger&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=honeybadger&package-manager=bundler&version-scheme=semver)
6
7
 
@@ -63,13 +63,15 @@ module Honeybadger
63
63
  end
64
64
 
65
65
  @context = opts.delete(:context)
66
- if opts.delete(:local_context)
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 = ::ActiveRecord::Base.connection_config[: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
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # The current String Honeybadger version.
3
- VERSION = '4.6.0'.freeze
3
+ VERSION = '4.7.0'.freeze
4
4
  end
@@ -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.6.0
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-03-12 00:00:00.000000000 Z
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.0.1
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.