honeybadger 4.4.1 → 4.4.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: bae59898a735ee5f2d05c617d861f8e3914efae5edba14a66a49a2dadf10d9a4
4
- data.tar.gz: 31900520bc3b342f798f26d41785e8be66038fe236428cec28ac2a50fab11425
3
+ metadata.gz: fac77f5cc8573711baf81c791a3f7377ef05e931c36a05be1e7b00225f1f4cbd
4
+ data.tar.gz: 8c622aa94f759c54d074c23dd7836c285449abb0399bd34642e616b352096f36
5
5
  SHA512:
6
- metadata.gz: c144fd453055504534c896392524f2471a255a9a81037836638130317f8edc889f07b4ba9f85d414a21dec275e17ac9354789441766fb2ec9bbb5e11a7e1a001
7
- data.tar.gz: f747cdb9a3f4b1a56d7296fd745f53a4e204fe7bf588c1068cd6648e76f14f5519677c2105b838d40a222ebaac99c78f4ef8269966228fa8075e0ffd08b48f15
6
+ metadata.gz: 6c1a4792a723264e8f633f41d62ba85eeef2a895fe5dd14eccd3f9bce9820b0565338618a0057508295a9e0c4661b5fb8da25a45e54f2b09c11ed4a9fb1fbdf7
7
+ data.tar.gz: 872d754f468b46308632c668b8fdaa4b06786f517d16dd15f503aa05a7a814351f6c3f1c8e15b304441afd1a8cf01e1bbdbd7002ae8fd9f8abce96e4c14f7aab
@@ -5,6 +5,11 @@ adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [4.4.2] - 2019-08-01
9
+ ### Fixed
10
+ - Handle ActiveSupport::Notifications passing nil started or finished time
11
+ -@pcreux
12
+
8
13
  ## [4.4.1] - 2019-07-30
9
14
  ### Fixed
10
15
  - Allow non-strings to be passed to breadcrumbs logger
@@ -89,7 +89,7 @@ module Honeybadger
89
89
  data = notification_config[:transform].call(data) if notification_config[:transform]
90
90
  data = data.is_a?(Hash) ? data : {}
91
91
 
92
- data[:duration] = duration
92
+ data[:duration] = duration if duration
93
93
 
94
94
  Honeybadger.add_breadcrumb(
95
95
  message,
@@ -101,7 +101,9 @@ module Honeybadger
101
101
  # @api private
102
102
  def self.subscribe_to_notification(name, notification_config)
103
103
  ActiveSupport::Notifications.subscribe(name) do |_, started, finished, _, data|
104
- send_breadcrumb_notification(name, finished - started, notification_config, data)
104
+ duration = finished - started if finished && started
105
+
106
+ send_breadcrumb_notification(name, duration, notification_config, data)
105
107
  end
106
108
  end
107
109
  end
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # The current String Honeybadger version.
3
- VERSION = '4.4.1'.freeze
3
+ VERSION = '4.4.2'.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: 4.4.1
4
+ version: 4.4.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: 2019-07-30 00:00:00.000000000 Z
11
+ date: 2019-08-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Make managing application errors a more pleasant experience.
14
14
  email: