honeybadger 2.7.0 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/lib/honeybadger/config/defaults.rb +1 -1
- data/lib/honeybadger/init/sinatra.rb +1 -2
- data/lib/honeybadger/notice.rb +17 -3
- data/lib/honeybadger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddefba8d4173d277935d346dd7c56212e388ac54
|
4
|
+
data.tar.gz: 9044c43d190b25f177f730d7595d72e779080b35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f29452cfd8b66be94f4eb120fa7f3a6e1a4a4257e420e1d209c3587002bb633d4f41cb5e040ab091821e4fa919a8d286e2ace9cb59d7dc0eecddaa0397e6eb57
|
7
|
+
data.tar.gz: 5a3039f0c4be455e814695a70266a24dcb024777ccc598f77931512af5e9dafbb4a88e63d1611a0f97b0f2b1a42161100fbee2da7080e019014534b2c2abc3e1
|
data/CHANGELOG.md
CHANGED
@@ -3,11 +3,18 @@ All notable changes to this project will be documented in this file. See [Keep a
|
|
3
3
|
CHANGELOG](http://keepachangelog.com/) for how to update this file. This project
|
4
4
|
adheres to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
-
## [Unreleased]
|
6
|
+
## [Unreleased]
|
7
|
+
|
8
|
+
## [2.7.1] - 2016-11-16
|
9
|
+
### Fixed
|
10
|
+
- Fix a Sinatra bug where `RACK_ENV` default was not used as default env.
|
11
|
+
- Fixed an error when accessing notice request data from `exception_fingerprint`
|
12
|
+
callback.
|
7
13
|
|
8
14
|
## [2.7.0] - 2016-10-20
|
9
15
|
### Added
|
10
16
|
- Support Sinatra 2.0.
|
17
|
+
- Source snippets are now sent for every line of the backtrace.
|
11
18
|
|
12
19
|
### Changed
|
13
20
|
- Sunset performance metrics. See
|
@@ -33,7 +33,7 @@ module Honeybadger
|
|
33
33
|
},
|
34
34
|
env: {
|
35
35
|
description: 'The current application\'s environment name.',
|
36
|
-
default: ENV['HONEYBADGER_ENV'] || ENV['RACK_ENV'],
|
36
|
+
default: ENV['HONEYBADGER_ENV'] || ENV['RACK_ENV'] || ENV['APP_ENV'],
|
37
37
|
type: String
|
38
38
|
},
|
39
39
|
report_data: {
|
data/lib/honeybadger/notice.rb
CHANGED
@@ -139,7 +139,6 @@ module Honeybadger
|
|
139
139
|
"#{exception.class.name}: #{exception.message}"
|
140
140
|
end
|
141
141
|
@backtrace = parse_backtrace(exception_attribute(:backtrace, caller))
|
142
|
-
@fingerprint = construct_fingerprint(opts)
|
143
142
|
|
144
143
|
@request = construct_request_hash(config, opts)
|
145
144
|
|
@@ -157,6 +156,9 @@ module Honeybadger
|
|
157
156
|
@api_key = opts[:api_key] || config[:api_key]
|
158
157
|
|
159
158
|
monkey_patch_action_dispatch_test_process!
|
159
|
+
|
160
|
+
# Fingerprint must be calculated last since callback operates on `self`.
|
161
|
+
@fingerprint = construct_fingerprint(opts)
|
160
162
|
end
|
161
163
|
|
162
164
|
# Internal: Template used to create JSON payload
|
@@ -366,8 +368,20 @@ module Honeybadger
|
|
366
368
|
binding ||= exception.__honeybadger_bindings_stack[0]
|
367
369
|
|
368
370
|
vars = binding.eval('local_variables')
|
369
|
-
|
370
|
-
|
371
|
+
results =
|
372
|
+
vars.inject([]) { |acc, arg|
|
373
|
+
begin
|
374
|
+
result = binding.eval(arg.to_s)
|
375
|
+
acc << [arg, result]
|
376
|
+
rescue NameError
|
377
|
+
# Do Nothing
|
378
|
+
end
|
379
|
+
|
380
|
+
acc
|
381
|
+
}
|
382
|
+
|
383
|
+
result_hash = Hash[results]
|
384
|
+
request_sanitizer.sanitize(result_hash)
|
371
385
|
end
|
372
386
|
|
373
387
|
# Internal: Should local variables be sent?
|
data/lib/honeybadger/version.rb
CHANGED
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.7.
|
4
|
+
version: 2.7.1
|
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-
|
11
|
+
date: 2016-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Make managing application errors a more pleasant experience.
|
14
14
|
email:
|