honeybadger 5.14.0 → 5.14.2

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: 722de127dc6619f9642da342b7e2a64cb21227c70a1edcb4c43b8cd87fff4775
4
- data.tar.gz: b5ec24fe5ac00d88ae2a774f099aa56bb546a5d9a331eb0d28d9abc0ac653ae9
3
+ metadata.gz: 6a266a536f678ad185e842fb49965060a83a9212bc9e0d83b82676eda7ee339e
4
+ data.tar.gz: efe4451de8be26102391b0e15269a175b446250bb81d0076807f0137497e959a
5
5
  SHA512:
6
- metadata.gz: df56556a7a476570dcf3711f26895f225ab55b343fca701aca2a57ac86a99cded62ca51f8773d46726dd2f5190301ce46f3619372b0eb60dc273214e66b54d1e
7
- data.tar.gz: 1a707859ab8a20219c6fb00f32a23e9a04439eedb1036868c7a31e57daf8a06cd008da81162e8b3cf219ad435a3858cdfbca80c6f5c8463754be3f3b80167c1a
6
+ metadata.gz: d72c1b0452f68bfae263c9ceaca636b8201e20f4a902ea8498dfc174251ca3a8e3f72e3043aae0cf2e43a972ac35a94c051f1ee113b2b0ff344a021f4caeded9
7
+ data.tar.gz: f2b3511ec5b6cb683a593424831e05475320fc398063ab948a81fb946dfff45656c9df7da3ac0a02f9af050747d58dbf9b94aa661855fbc688814a85660e8faa
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  # Change Log
2
2
 
3
3
 
4
+ ## [5.14.2](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.14.1...v5.14.2) (2024-07-17)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * add []= delegator ([#590](https://github.com/honeybadger-io/honeybadger-ruby/issues/590)) ([9f1d6b5](https://github.com/honeybadger-io/honeybadger-ruby/commit/9f1d6b55e88497c4c37659fdfaeaa163c7794672))
10
+ * add event method for cli backend test ([#588](https://github.com/honeybadger-io/honeybadger-ruby/issues/588)) ([1e047bb](https://github.com/honeybadger-io/honeybadger-ruby/commit/1e047bbcd17db676b96dd78eb918475e3a52ab1b))
11
+
12
+ ## [5.14.1](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.14.0...v5.14.1) (2024-07-15)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * do not serialize adapter object ([#586](https://github.com/honeybadger-io/honeybadger-ruby/issues/586)) ([f724ebf](https://github.com/honeybadger-io/honeybadger-ruby/commit/f724ebf0a2c3e2402c64448779cf7e6386de8b47))
18
+
4
19
  ## [5.14.0](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.13.3...v5.14.0) (2024-07-11)
5
20
 
6
21
 
@@ -13,6 +13,16 @@ module Honeybadger
13
13
  @notifications ||= Hash.new {|h,k| h[k] = [] }
14
14
  end
15
15
 
16
+ # The event list.
17
+ #
18
+ # @example
19
+ # Test.events # => [{}, {}, ...]
20
+ #
21
+ # @return [Array<Hash>] List of event payloads.
22
+ def self.events
23
+ @events ||= []
24
+ end
25
+
16
26
  # @api public
17
27
  # The check in list.
18
28
  #
@@ -37,6 +47,11 @@ module Honeybadger
37
47
  super
38
48
  end
39
49
 
50
+ def event(payload)
51
+ events << payload
52
+ super
53
+ end
54
+
40
55
  def check_in(id)
41
56
  check_ins << id
42
57
  super
@@ -24,11 +24,21 @@ module Honeybadger
24
24
  @callings ||= Hash.new {|h,k| h[k] = [] }
25
25
  end
26
26
 
27
+ def self.events
28
+ @events ||= []
29
+ end
30
+
27
31
  def notify(feature, payload)
28
32
  response = @backend.notify(feature, payload)
29
33
  self.class.callings[feature] << [payload, response]
30
34
  response
31
35
  end
36
+
37
+ def event(payload)
38
+ response = @backend.event(payload)
39
+ self.class.events << [payload, response]
40
+ response
41
+ end
32
42
  end
33
43
 
34
44
  def initialize(options)
@@ -13,7 +13,7 @@ module Honeybadger
13
13
  # The payload data of the event
14
14
  attr_reader :payload
15
15
 
16
- def_delegator :payload, :[]
16
+ def_delegators :payload, :[], :[]=
17
17
 
18
18
  # @api private
19
19
  def initialize(event_type_or_payload, payload={})
@@ -74,8 +74,10 @@ module Honeybadger
74
74
  class ActiveJobSubscriber < NotificationSubscriber
75
75
  def format_payload(payload)
76
76
  job = payload[:job]
77
- payload.except(:job).merge({
78
- job_class: job.class,
77
+ adapter = payload[:adapter]
78
+ payload.except(:job, :adapter).merge({
79
+ adapter_class: adapter.class.to_s,
80
+ job_class: job.class.to_s,
79
81
  job_id: job.job_id,
80
82
  queue_name: job.queue_name
81
83
  })
@@ -87,7 +89,7 @@ module Honeybadger
87
89
 
88
90
  def format_payload(payload)
89
91
  {
90
- job_class: payload[:job].class,
92
+ job_class: payload[:job].class.to_s,
91
93
  queue_name: payload[:job].queue_name
92
94
  }
93
95
  end
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # The current String Honeybadger version.
3
- VERSION = '5.14.0'.freeze
3
+ VERSION = '5.14.2'.freeze
4
4
  end
@@ -228,9 +228,9 @@ module Honeybadger
228
228
  when 201
229
229
  host = config.get(:'connection.ui_host')
230
230
  if throttle = dec_throttle
231
- info { sprintf('Success ⚡ https://#{host}/notice/%s id=%s code=%s throttle=%s interval=%s', msg.id, msg.id, response.code, throttle, throttle_interval) }
231
+ info { sprintf('Success ⚡ https://%s/notice/%s id=%s code=%s throttle=%s interval=%s', host, msg.id, msg.id, response.code, throttle, throttle_interval) }
232
232
  else
233
- info { sprintf('Success ⚡ https://#{host}/notice/%s id=%s code=%s', msg.id, msg.id, response.code) }
233
+ info { sprintf('Success ⚡ https://%s/notice/%s id=%s code=%s', host, msg.id, msg.id, response.code) }
234
234
  end
235
235
  when :stubbed
236
236
  info { sprintf('Success ⚡ Development mode is enabled; this error will be reported if it occurs after you deploy your app. id=%s', msg.id) }
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.14.0
4
+ version: 5.14.2
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-11 00:00:00.000000000 Z
11
+ date: 2024-07-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Make managing application errors a more pleasant experience.
14
14
  email: