honeybadger 4.2.1 → 4.2.2

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: 05e9c7de2bd4014e179121924ea1a5fd6458b7c222b79bf8fe3f83b8003514d3
4
- data.tar.gz: 9f4d71019d4c70edd7c4855fe614c65d5e1b0828e947c5e5139c6391c8996906
3
+ metadata.gz: be7d9074b02543453248a4dae419eb0db6acd4180426fa9ffda51d42ad60e0d6
4
+ data.tar.gz: d1e8d6da03aedc09ed95dec55a547f8085c45339268a355cb472e3f74af2a071
5
5
  SHA512:
6
- metadata.gz: 0dbafa05b24ddb36f788cf470a381261186dd3ec815f095394156405154f9e6ed75986b1caced46d5b82f8a9ef59b0228b277319237d320c054f4529ebb47dfa
7
- data.tar.gz: a194e1bd2c80039f5a58050b059dcd62762cd5a9392292fc3b532eace76d6c577a1d220d0ea33a4377e8d71a593dfd303ee71edaa2bc8b33fe611e63635cebad
6
+ metadata.gz: 5c208b4c42ca10378d529afd8b4b4e2e95c8d04a2338fb484f8e1f24efc751ced52dad0a0580279db90a03e2eb1aa5e3373dada303a6fd8a7062a0ccf4917627
7
+ data.tar.gz: 2efab3f9ac0db05226b9649556fd3df0623b0e6240d83de87ffc246a7f1dc971825cd4806a6edefe1b754815ea01a7ea3f2617bf160002de138fbe2f8184b68d
data/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [4.2.2] - 2019-04-25
9
+ ### Fixed
10
+ - Fix a bug where some non-standard backtraces could not be parsed, resulting in
11
+ an error when sending error reports. Backtraces are now explicitly converted
12
+ to arrays, and lines are converted to strings.
13
+ - Fix a typo in throttle log message. -@mobilutz
14
+
8
15
  ## [4.2.1] - 2019-02-01
9
16
  ### Fixed
10
17
  - Fix #301 - before_notify hooks are overridden on subsequent
@@ -114,10 +114,10 @@ module Honeybadger
114
114
  attr_reader :lines, :application_lines
115
115
 
116
116
  def self.parse(ruby_backtrace, opts = {})
117
- ruby_lines = split_multiline_backtrace(ruby_backtrace)
117
+ ruby_lines = split_multiline_backtrace(ruby_backtrace.to_a)
118
118
 
119
119
  lines = ruby_lines.collect do |unparsed_line|
120
- Line.parse(unparsed_line, opts)
120
+ Line.parse(unparsed_line.to_s, opts)
121
121
  end.compact
122
122
 
123
123
  instance = new(lines)
@@ -171,8 +171,8 @@ module Honeybadger
171
171
  attr_writer :lines, :application_lines
172
172
 
173
173
  def self.split_multiline_backtrace(backtrace)
174
- if backtrace.to_a.size == 1
175
- backtrace.to_a.first.split(/\n\s*/)
174
+ if backtrace.size == 1
175
+ backtrace.first.to_s.split(/\n\s*/)
176
176
  else
177
177
  backtrace
178
178
  end
@@ -90,7 +90,7 @@ WELCOME
90
90
  option :message, required: true, type: :string, aliases: :'-m', desc: 'The error message.'
91
91
  option :action, required: false, type: :string, aliases: :'-a', desc: 'The action.'
92
92
  option :component, required: false, type: :string, aliases: :'-C', desc: 'The component.'
93
- option :fingerprint, required: false, type: :string, aliases: :'-f', desc: 'The component.'
93
+ option :fingerprint, required: false, type: :string, aliases: :'-f', desc: 'The fingerprint.'
94
94
  option :tags, required: false, type: :string, aliases: :'-t', desc: 'The tags.'
95
95
  option :url, required: false, type: :string, aliases: :'-u', desc: 'The URL.'
96
96
  def notify
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # The current String Honeybadger version.
3
- VERSION = '4.2.1'.freeze
3
+ VERSION = '4.2.2'.freeze
4
4
  end
@@ -202,7 +202,7 @@ module Honeybadger
202
202
 
203
203
  case response.code
204
204
  when 429, 503
205
- warn { sprintf('Error report failed: project is sending too many errors. id=%s code=%s throttle=1.25 interval=%s', msg.id, throttle_interval, response.code) }
205
+ warn { sprintf('Error report failed: project is sending too many errors. id=%s code=%s throttle=1.25 interval=%s', msg.id, response.code, throttle_interval) }
206
206
  add_throttle(1.25)
207
207
  when 402
208
208
  warn { sprintf('Error report failed: payment is required. id=%s code=%s', msg.id, response.code) }
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.2.1
4
+ version: 4.2.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-02-02 00:00:00.000000000 Z
11
+ date: 2019-04-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Make managing application errors a more pleasant experience.
14
14
  email:
@@ -142,8 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
- rubyforge_project:
146
- rubygems_version: 2.7.6
145
+ rubygems_version: 3.0.3
147
146
  signing_key:
148
147
  specification_version: 4
149
148
  summary: Error reports you can be happy about.