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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c03feed30c9511247121720e31a5a14c4f9880f
4
- data.tar.gz: bd3277abe25a60ead98013c99b15176791983c07
3
+ metadata.gz: a7b2d535331bbfc5d0dc71e32947651dae160086
4
+ data.tar.gz: 64307ae927ce9a40c1e618d7ee7dbc2becec582f
5
5
  SHA512:
6
- metadata.gz: 84b81e48b0957101bcbc75581db66617b7be674b920d66725bfcc8381139b682177cc498392933522fe267d6df6ab53eeb8eddb0f9bf5ee876d92dd2d1ede7b2
7
- data.tar.gz: 63af97a95116ec86a7dde600ecd28a3f5b6c55f647c4ac1ed51ccf0ca2ae679bdc9713fbb1445a99d4c3fc17ffcc257b8de62009cc8d88f186e45f959aee3dd2
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
@@ -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] = s(local_variables) if 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] = Util::Sanitizer.new(filters: config.params_filters)
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?
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # Public: The current String Honeybadger version.
3
- VERSION = '2.1.4'.freeze
3
+ VERSION = '2.1.5'.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.1.4
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-02 00:00:00.000000000 Z
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: