honeybadger 2.5.2 → 2.5.3

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
  SHA1:
3
- metadata.gz: 473d0c1bd287348d9677f0dc65f79a423964cf81
4
- data.tar.gz: ff8a2c8ad3a02a69a4a04d4f2915cefdf8b0a620
3
+ metadata.gz: 960bb68ee11d0d8dce4c6eb5d9311993653f33db
4
+ data.tar.gz: a2c016f3cadd8d29dba7c5d1771e113ae568c2aa
5
5
  SHA512:
6
- metadata.gz: c47429c337511a8d9cefbb55d2362e6f694c9716448a3a06dc8b4d5b88548e7ef4417ee835e96e8cbca7e0efdb96b7f95408b7914fc87c244ba725c1a11e7ee9
7
- data.tar.gz: ef5162bc256f1e39e53fdda7cfb9fd3a71aca81413a9599ed719eed631f70d797f977c23b419e25509803cd810a35df4eb5cb92a6c7847d57533071385d35731
6
+ metadata.gz: 2cb05d59a7a735ef68afa3527c555a4206db6fea6aaf97023b6d5e314466229bbf0931542f86d8ac5ee554bd0b0a990246aff1713c849e54dcf023032d28956d
7
+ data.tar.gz: b10c5fa1d237940f8cef27852c97f43ca0e02222495f5d062d3f9d2352000c635906685c758f284877bdc7c55d9cbcb9e04270a5c63cb3c0ca8e1368d2bc2ffd
@@ -5,6 +5,11 @@ adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased][unreleased]
7
7
 
8
+ ## [2.5.3] - 2016-03-10
9
+ ### Fixed
10
+ - Squashed a bug where the wrong source extract was sent for some instances of
11
+ `ActionView::Template::Error`.
12
+
8
13
  ## [2.5.2] - 2016-03-08
9
14
  ### Fixed
10
15
  - Allow plugin names in config to be symbols or strings (#177).
@@ -319,14 +319,7 @@ module Honeybadger
319
319
  def extract_source_from_backtrace(backtrace, config, opts)
320
320
  return nil if backtrace.lines.empty?
321
321
 
322
- # ActionView::Template::Error has its own source_extract method.
323
- # If present, use that instead.
324
- if exception.respond_to?(:source_extract) && exception.source_extract
325
- Hash[exception.source_extract.split("\n").map do |line|
326
- parts = line.split(': ')
327
- [parts[0].strip, parts[1] || '']
328
- end]
329
- elsif backtrace.application_lines.any?
322
+ if backtrace.application_lines.any?
330
323
  backtrace.application_lines.first.source(config[:'exceptions.source_radius'])
331
324
  else
332
325
  backtrace.lines.first.source(config[:'exceptions.source_radius'])
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # Public: The current String Honeybadger version.
3
- VERSION = '2.5.2'.freeze
3
+ VERSION = '2.5.3'.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: 2.5.2
4
+ version: 2.5.3
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: 2016-03-08 00:00:00.000000000 Z
11
+ date: 2016-03-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Make managing application errors a more pleasant experience.
14
14
  email: