honeybadger 2.1.4 → 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/lib/honeybadger/notice.rb +6 -4
- 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: a7b2d535331bbfc5d0dc71e32947651dae160086
|
4
|
+
data.tar.gz: 64307ae927ce9a40c1e618d7ee7dbc2becec582f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e56cece28fd6f41badc3ec3fb39e630020f3d23b7886748facde85500de56813a0e90de4cd06a379cba4a53d62cae3c9fe460895cf9645ae8abed8826d3d00c
|
7
|
+
data.tar.gz: 58e9f5187c077c1c9b9a4c083627b98f4255f673d00cb087673916c356fa7fc0174c60643570081275e54b5d7ede6d1376ddbf01cd5d1a5ea3c00285dfe24c84
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,8 @@ CHANGELOG](http://keepachangelog.com/) for how to update this file. This project
|
|
4
4
|
adheres to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
6
|
## [Unreleased][unreleased]
|
7
|
+
## Fixed
|
8
|
+
- Apply parameter filters to local variables.
|
7
9
|
|
8
10
|
## [2.1.4] - 2015-09-02
|
9
11
|
## Fixed
|
data/lib/honeybadger/notice.rb
CHANGED
@@ -131,6 +131,7 @@ module Honeybadger
|
|
131
131
|
@config = config
|
132
132
|
|
133
133
|
@sanitizer = Util::Sanitizer.new
|
134
|
+
@request_sanitizer = Util::Sanitizer.new(filters: config.params_filters)
|
134
135
|
|
135
136
|
@exception = unwrap_exception(opts[:exception])
|
136
137
|
@error_class = exception_attribute(:error_class) {|exception| exception.class.name }
|
@@ -164,7 +165,7 @@ module Honeybadger
|
|
164
165
|
# Returns Hash JSON representation of notice
|
165
166
|
def as_json(*args)
|
166
167
|
@request[:context] = s(context)
|
167
|
-
@request[:local_variables] =
|
168
|
+
@request[:local_variables] = local_variables if local_variables
|
168
169
|
|
169
170
|
{
|
170
171
|
api_key: s(api_key),
|
@@ -223,7 +224,7 @@ module Honeybadger
|
|
223
224
|
|
224
225
|
private
|
225
226
|
|
226
|
-
attr_reader :config, :opts, :context, :stats, :now, :pid, :causes, :sanitizer
|
227
|
+
attr_reader :config, :opts, :context, :stats, :now, :pid, :causes, :sanitizer, :request_sanitizer
|
227
228
|
|
228
229
|
def ignore_by_origin?
|
229
230
|
opts[:origin] == :rake && !config[:'exceptions.rescue_rake']
|
@@ -302,7 +303,7 @@ module Honeybadger
|
|
302
303
|
request[:component] = opts[:controller] if opts.has_key?(:controller)
|
303
304
|
request[:params] = opts[:parameters] if opts.has_key?(:parameters)
|
304
305
|
request.delete_if {|k,v| config.excluded_request_keys.include?(k) }
|
305
|
-
request[:sanitizer] =
|
306
|
+
request[:sanitizer] = request_sanitizer
|
306
307
|
Util::RequestPayload.build(request)
|
307
308
|
end
|
308
309
|
|
@@ -382,7 +383,8 @@ module Honeybadger
|
|
382
383
|
binding ||= exception.__honeybadger_bindings_stack[0]
|
383
384
|
|
384
385
|
vars = binding.eval('local_variables')
|
385
|
-
Hash[vars.map {|arg| [arg, binding.eval(arg.to_s)]}]
|
386
|
+
result = Hash[vars.map {|arg| [arg, binding.eval(arg.to_s)]}]
|
387
|
+
request_sanitizer.sanitize(result)
|
386
388
|
end
|
387
389
|
|
388
390
|
# 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.1.
|
4
|
+
version: 2.1.5
|
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: 2015-09-
|
11
|
+
date: 2015-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Make managing application errors a more pleasant experience.
|
14
14
|
email:
|