exception_handling 2.5.0.pre.2 → 2.5.0

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: e1f2be68af4ed35506d1ecb517eb720a197a4d3c7d346eeb11c87d8a6e9abdf5
4
- data.tar.gz: c87a3341b654ae7144f41888fc0e454953f52663a259f353405790c25d8596ba
3
+ metadata.gz: 7b8df9043df9ecc580c8ea91495410cf37316c113acf43ac7f28dfeb885e235d
4
+ data.tar.gz: 84f2a6eac09d7388f3c9ffd2e58a4211231aff7ccfe8869b1e307c51e9b02788
5
5
  SHA512:
6
- metadata.gz: 4d2b5d03154666523f7fe03321ad1d1fa28ac0ae00629249c21f9f73a330b6f325acfe1ce8b039df4f318b6ade3dd28373b476f87f12d46917016403fbc8a8d6
7
- data.tar.gz: 1482537c680996153dd63c7edb30b43259789a16ff3f86b8a61b5cd8aab402a9c07905dbc7d0a945ea0b93fd0fea2ea3ec09bbe51b389fe440d9d58991f08bb9
6
+ metadata.gz: 958f9994d47ff6ab87082ed04411c62af377e5e317c8f8669c349d4d7d38f4c7d0a88f6119a2c2a83882ed1be8624baf6e4c67e5fe0bedaeeebcfea7921558e5
7
+ data.tar.gz: c412244a874549ce99d8e0645ceb6b56a59b9b8b92ddba6cbfab8eb83e5159954d13e5e96e119519e4c9e97e5786412f9f3d60ebef66f4bd5aa5c71dbd70901c
@@ -4,11 +4,15 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
5
  Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
- ## [2.5.0] - Unreleased
7
+ ## [2.5.0] - 2020-08-19
8
8
  ### Added
9
9
  - The `**log_context` passed to `log_error`/`log_warning`/`log_info` is now
10
10
  passed into `Honeybadger.notify()`, in `context: { log_context: ... }`.
11
11
 
12
+ ### Fixed
13
+ - Silenced test warning noise by no longer running ruby -w.
14
+ - Renamed a constant to ALLOWLIST.
15
+
12
16
  ## [2.4.4] - 2020-08-10
13
17
  ### Fixed
14
18
  - `ExceptionHandling.logger = nil` no longer displays an "implicit extend" deprecation warning.
@@ -8,7 +8,7 @@ GIT
8
8
  PATH
9
9
  remote: .
10
10
  specs:
11
- exception_handling (2.5.0.pre.2)
11
+ exception_handling (2.5.0)
12
12
  actionmailer (>= 4.2, < 7.0)
13
13
  actionpack (>= 4.2, < 7.0)
14
14
  activesupport (>= 4.2, < 7.0)
@@ -195,7 +195,7 @@ module ExceptionHandling # never included
195
195
  timestamp = set_log_error_timestamp
196
196
  exception_info = ExceptionInfo.new(ex, exception_context, timestamp,
197
197
  controller: controller || current_controller, data_callback: data_callback,
198
- log_context: logger.current_context_for_thread.deep_merge(log_context))
198
+ log_context: log_context)
199
199
 
200
200
  if stub_handler
201
201
  stub_handler.handle_stub_log_error(exception_info.data)
@@ -57,7 +57,9 @@ module ExceptionHandling
57
57
  @timestamp = timestamp
58
58
  @controller = controller || controller_from_context(exception_context)
59
59
  @data_callback = data_callback
60
- @log_context = log_context
60
+ @merged_log_context = if log_context # merge into the surrounding context just like ContextualLogger does when logging
61
+ ExceptionHandling.logger.current_context_for_thread.deep_merge(log_context)
62
+ end
61
63
  end
62
64
 
63
65
  def data
@@ -269,7 +271,7 @@ module ExceptionHandling
269
271
  data = enhanced_data.dup
270
272
  data[:server] = ExceptionHandling.server_name
271
273
  data[:exception_context] = deep_clean_hash(@exception_context) if @exception_context.present?
272
- data[:log_context] = @log_context
274
+ data[:log_context] = @merged_log_context
273
275
  unstringify_sections(data)
274
276
  context_data = HONEYBADGER_CONTEXT_SECTIONS.reduce({}) do |context, section|
275
277
  if data[section].present?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ExceptionHandling
4
- VERSION = '2.5.0.pre.2'
4
+ VERSION = '2.5.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exception_handling
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0.pre.2
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-19 00:00:00.000000000 Z
11
+ date: 2020-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer
@@ -180,9 +180,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  requirements:
183
- - - ">"
183
+ - - ">="
184
184
  - !ruby/object:Gem::Version
185
- version: 1.3.1
185
+ version: '0'
186
186
  requirements: []
187
187
  rubygems_version: 3.0.3
188
188
  signing_key: