honeybadger 5.15.2 → 5.15.4

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: 8ac45268b7d8a33ffb3207ca09c86002e4f686f4cf0f55b6c91b8f7d523b3864
4
- data.tar.gz: f75f1a7477188fab3a5c26ac691559b6620cf3daaf7835ca3f59b358538880de
3
+ metadata.gz: e02a98a2c03861bc6a34a783ed06bd0715986ebc533528ca2f96fab6baa12efb
4
+ data.tar.gz: 56b993ee11bca44d5035e75bedebeafab92c526e43dacbeae5a9a365c0b271ef
5
5
  SHA512:
6
- metadata.gz: 0b6f957090b49ac73d2faabdbf1c5e38eed45a67ef85d6e2521da3f3ea932e2405cd99f7d4d37d60d5af593ff07bb5a3980b31738141ca1a2a233bd5424d3045
7
- data.tar.gz: f61234debf9be09726a09ac7b95ca981cbef6747ceaeb74ca5389b74406c0d699c08aab689ec9ba5bc3c0c13c778a8c23fb8fa581fa7fe0fdc1cb4588855dd7d
6
+ metadata.gz: 540df7f2914728534af986a1cab887e8867b48c106297ad3f0ae26d73eeeb402d239cc2f28aa1dd337224f020218ebaf5533f40cc2ebd8955734b025ae888e17
7
+ data.tar.gz: '068b34fc9de350eedcb916897cebe1afbb8ca60ecb7368f25ae9f548427a9ded5d77dc2cf23e311e13886125e49de263ff1f818f8c939deb53c62d89217fe4eb'
data/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
1
  # Change Log
2
2
 
3
3
 
4
+ ## [5.15.4](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.15.3...v5.15.4) (2024-07-29)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * add back key for cache notification payloads ([#600](https://github.com/honeybadger-io/honeybadger-ruby/issues/600)) ([9779dd4](https://github.com/honeybadger-io/honeybadger-ruby/commit/9779dd4664a057bdb65a9144612f29c569ac4da5))
10
+
11
+ ## [5.15.3](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.15.2...v5.15.3) (2024-07-25)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * use top level Sidekiq namespace ([#598](https://github.com/honeybadger-io/honeybadger-ruby/issues/598)) ([8b95d19](https://github.com/honeybadger-io/honeybadger-ruby/commit/8b95d1910abbb015d17c132c1737acbf1fbd7c7f))
17
+
4
18
  ## [5.15.2](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.15.1...v5.15.2) (2024-07-25)
5
19
 
6
20
 
@@ -41,13 +41,33 @@ module Honeybadger
41
41
 
42
42
  class ActionControllerCacheSubscriber < NotificationSubscriber
43
43
  def format_payload(payload)
44
- payload.except(:key)
44
+ payload[:key] = ::ActiveSupport::Cache.expand_cache_key(payload[:key]) if payload[:key]
45
+ payload
45
46
  end
46
47
  end
47
48
 
48
49
  class ActiveSupportCacheSubscriber < NotificationSubscriber
49
50
  def format_payload(payload)
50
- payload.except(:key)
51
+ payload[:key] = ::ActiveSupport::Cache.expand_cache_key(payload[:key]) if payload[:key]
52
+ payload
53
+ end
54
+ end
55
+
56
+ class ActiveSupportCacheMultiSubscriber < NotificationSubscriber
57
+ def format_payload(payload)
58
+ payload[:key] = expand_cache_keys_from_payload(payload[:key])
59
+ payload[:hits] = expand_cache_keys_from_payload(payload[:hits])
60
+ payload
61
+ end
62
+
63
+ def expand_cache_keys_from_payload(data)
64
+ return unless data
65
+
66
+ data = data.keys if data.is_a?(Hash)
67
+
68
+ Array(data).map do |k|
69
+ ::ActiveSupport::Cache.expand_cache_key(k)
70
+ end
51
71
  end
52
72
  end
53
73
 
@@ -77,7 +77,8 @@ module Honeybadger
77
77
  if config.load_plugin_insights?(:rails)
78
78
  ::ActiveSupport::Notifications.subscribe(/(process_action|send_file|redirect_to|halted_callback|unpermitted_parameters)\.action_controller/, Honeybadger::ActionControllerSubscriber.new)
79
79
  ::ActiveSupport::Notifications.subscribe(/(write_fragment|read_fragment|expire_fragment|exist_fragment\?)\.action_controller/, Honeybadger::ActionControllerCacheSubscriber.new)
80
- ::ActiveSupport::Notifications.subscribe(/cache_(read|read_multi|generate|fetch_hit|write|write_multi|increment|decrement|delete|delete_multi|cleanup|prune|exist\?)\.active_support/, Honeybadger::ActiveSupportCacheSubscriber.new)
80
+ ::ActiveSupport::Notifications.subscribe(/cache_(read|generate|fetch_hit|write|increment|decrement|delete|cleanup|prune|exist\?)\.active_support/, Honeybadger::ActiveSupportCacheSubscriber.new)
81
+ ::ActiveSupport::Notifications.subscribe(/cache_(read_multi|write_multi|delete_multi\?)\.active_support/, Honeybadger::ActiveSupportCacheMultiSubscriber.new)
81
82
  ::ActiveSupport::Notifications.subscribe(/^render_(template|partial|collection)\.action_view/, Honeybadger::ActionViewSubscriber.new)
82
83
  ::ActiveSupport::Notifications.subscribe("sql.active_record", Honeybadger::ActiveRecordSubscriber.new)
83
84
  ::ActiveSupport::Notifications.subscribe("process.action_mailer", Honeybadger::ActionMailerSubscriber.new)
@@ -128,7 +128,7 @@ module Honeybadger
128
128
  require "sidekiq"
129
129
  require "sidekiq/api"
130
130
 
131
- if Gem::Version.new(Sidekiq::VERSION) >= Gem::Version.new('6.5')
131
+ if Gem::Version.new(::Sidekiq::VERSION) >= Gem::Version.new('6.5')
132
132
  require "sidekiq/component"
133
133
 
134
134
  class SidekiqClusterCollectionChecker
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # The current String Honeybadger version.
3
- VERSION = '5.15.2'.freeze
3
+ VERSION = '5.15.4'.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.2
4
+ version: 5.15.4
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-25 00:00:00.000000000 Z
11
+ date: 2024-07-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Make managing application errors a more pleasant experience.
14
14
  email: