honeybadger 5.15.0 → 5.15.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: 60300a5d8ccaecda5eeff8887f76c5c54dba5c4610539c4ff8865d1355a5c124
4
- data.tar.gz: d057c93fc1a8d24f6fdb4a952d5b56cf8dbf0f3ee07466eaad38d3be2efcad13
3
+ metadata.gz: 53470c49dca6dd18cc027497e441431f1b6871d47ddeb17ee00656dfefe49d18
4
+ data.tar.gz: e100a3d9279cd5986b16de62c25cf5d2b40f5bafad03bf0dc6560af1ebf966b3
5
5
  SHA512:
6
- metadata.gz: 06cdba44a37870e7b2e51414efb9ac48f5e3dc8015403a7b40e3a12520f0d037ab77f90205ea85f610de2d9bee11b6b6d5bf63fcbfce6a8d296ef8d1aeec7af9
7
- data.tar.gz: 6538734d781bd200445e9ac603baf2fbd3b91a0e723112cb79d7468a56baaadc38921fdd75dfd4bde8ad25a67e911e3c56020dcff54f49414066abd68c83dc9a
6
+ metadata.gz: adef30d0aa32a2933cec0513cbb64e0b0a024d2e8b486b8c3f8da662996337f60537f0d228a28ef2b4a36449cb8ac986588ee1d7b7e737716fa44767e23c9961
7
+ data.tar.gz: dbc9fd40eb13d435365cad321d604aaa0403ccc88184ae11087f11c3fdfb834da02a96a7c3281fc340956f9dcde38bcfeec097fe2d62be960291e6a545e371b2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # Change Log
2
2
 
3
3
 
4
+ ## [5.15.1](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.15.0...v5.15.1) (2024-07-23)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * safe navigate adapter_name for payload connection ([#593](https://github.com/honeybadger-io/honeybadger-ruby/issues/593)) ([368fb16](https://github.com/honeybadger-io/honeybadger-ruby/commit/368fb160d811252f83d0e262110a8c198557c7df))
10
+ * sidekiq leader check only for version > 6.5 ([#594](https://github.com/honeybadger-io/honeybadger-ruby/issues/594)) ([3bc005b](https://github.com/honeybadger-io/honeybadger-ruby/commit/3bc005b12d689da84ebe9b485eb53c508623d984))
11
+
4
12
  ## [5.15.0](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.14.2...v5.15.0) (2024-07-18)
5
13
 
6
14
 
@@ -59,7 +59,7 @@ module Honeybadger
59
59
  class ActiveRecordSubscriber < NotificationSubscriber
60
60
  def format_payload(payload)
61
61
  {
62
- query: Util::SQL.obfuscate(payload[:sql], payload[:connection].adapter_name),
62
+ query: Util::SQL.obfuscate(payload[:sql], payload[:connection]&.adapter_name),
63
63
  async: payload[:async]
64
64
  }
65
65
  end
@@ -127,25 +127,31 @@ module Honeybadger
127
127
  if config.load_plugin_insights?(:sidekiq)
128
128
  require "sidekiq"
129
129
  require "sidekiq/api"
130
- require "sidekiq/component"
131
130
 
132
- class SidekiqClusterCollectionChecker
133
- include ::Sidekiq::Component
134
- def initialize(config)
135
- @config = config
136
- end
131
+ if Gem::Version.new(Sidekiq::VERSION) >= Gem::Version.new('6.5')
132
+ require "sidekiq/component"
133
+
134
+ class SidekiqClusterCollectionChecker
135
+ include ::Sidekiq::Component
136
+ def initialize(config)
137
+ @config = config
138
+ end
137
139
 
138
- def collect?
139
- return true unless defined?(::Sidekiq::Enterprise)
140
- leader?
140
+ def collect?
141
+ return true unless defined?(::Sidekiq::Enterprise)
142
+ leader?
143
+ end
141
144
  end
142
145
  end
143
146
 
144
147
  ::Sidekiq.configure_server do |config|
145
148
  config.server_middleware { |chain| chain.add(ServerMiddlewareInstrumentation) }
146
149
  config.client_middleware { |chain| chain.add(ClientMiddlewareInstrumentation) }
147
- config.on(:startup) do
148
- leader_checker = SidekiqClusterCollectionChecker.new(config)
150
+
151
+ if defined?(SidekiqClusterCollectionChecker)
152
+ config.on(:startup) do
153
+ leader_checker = SidekiqClusterCollectionChecker.new(config)
154
+ end
149
155
  end
150
156
  end
151
157
 
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # The current String Honeybadger version.
3
- VERSION = '5.15.0'.freeze
3
+ VERSION = '5.15.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.15.0
4
+ version: 5.15.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: 2024-07-18 00:00:00.000000000 Z
11
+ date: 2024-07-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Make managing application errors a more pleasant experience.
14
14
  email: