exception_handling 2.11.3 → 2.12.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: 2ecd3cd1b1ac9c74a1b64c7ac8884122bf2625175c902fb211994c3fc2364fb6
4
- data.tar.gz: 8549017918ed765348567a73abb52fa2b97ae85a0a910962738f7aabafccf5e7
3
+ metadata.gz: b4e00da46ba75755214ab18ec1fa16bb9b230fbaf708031b97c1bb30f2c2f854
4
+ data.tar.gz: 2cf79b0eec0a66c825b98062d2b50609c8821500003f36834bded3bc5fc7ea5d
5
5
  SHA512:
6
- metadata.gz: f88892659d8e4c87209013b95b874eeb57b29c01b7648a07096cf915e4724264a70c184c76e0b0d8f07e3520ef9f7187bf8bfd94507877b7fe19ba785bc59ad4
7
- data.tar.gz: b5d4dc17af467b3d0994ce18e7050c7490e38318ab6abdade3a4dc050b9242e64aaba936b55b8806948051892a5c2856d7bd7308030ed899b4d978a8cfd8b472
6
+ metadata.gz: 29b73b67171866400ce1f5a07e6654593f57cb24e1de9a07d37b8e4ac039c3c8faca4d004bec784b0810c984e8caec9e10ff2aa26357a4a76fbb18dd6ad49632
7
+ data.tar.gz: 567d9ff144876f3fed8429a892e16f0a4e81440a2881c790bc3dc478ef9500050b0210fca71ed94e00f289a76a234898c46f45ba9de6738ffa351c41251cbdab
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ 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.12.0] - 2022-08-04
8
+ ### Added
9
+ - Support for passing additional Honeybadger configuration parameters
10
+
7
11
  ## [2.11.3] - 2022-04-07
8
12
  ### Fixed
9
13
  - Fixed bug in ruby 2.7+ where `digest` was not required by default
@@ -91,6 +95,7 @@ Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0
91
95
  ### Changed
92
96
  - No longer depends on hobo_support. Uses invoca-utils 0.3 instead.
93
97
 
98
+ [2.12.0]: https://github.com/Invoca/exception_handling/compare/v2.11.3...v2.12.0
94
99
  [2.11.3]: https://github.com/Invoca/exception_handling/compare/v2.11.2...v2.11.3
95
100
  [2.11.2]: https://github.com/Invoca/exception_handling/compare/v2.11.1...v2.11.2
96
101
  [2.11.1]: https://github.com/Invoca/exception_handling/compare/v2.11.0...v2.11.1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- exception_handling (2.11.3)
4
+ exception_handling (2.12.0)
5
5
  actionmailer (>= 5.2, < 7.0)
6
6
  actionpack (>= 5.2, < 7.0)
7
7
  activesupport (>= 5.2, < 7.0)
@@ -68,7 +68,7 @@ GEM
68
68
  concurrent-ruby (~> 1.0)
69
69
  invoca-utils (0.4.1)
70
70
  jaro_winkler (1.5.3)
71
- json (2.6.1)
71
+ json (2.6.2)
72
72
  loofah (2.15.0)
73
73
  crass (~> 1.0.2)
74
74
  nokogiri (>= 1.5.9)
@@ -136,7 +136,7 @@ GEM
136
136
  power_assert
137
137
  thor (1.0.1)
138
138
  thread_safe (0.3.6)
139
- timeout (0.2.0)
139
+ timeout (0.3.0)
140
140
  tzinfo (1.2.9)
141
141
  thread_safe (~> 0.1)
142
142
  unicode-display_width (1.6.0)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ExceptionHandling
4
- VERSION = '2.11.3'
4
+ VERSION = '2.12.0'
5
5
  end
@@ -293,7 +293,11 @@ module ExceptionHandling # never included
293
293
  Bundler.require(:honeybadger)
294
294
  Honeybadger.configure do |config_klass|
295
295
  config.each do |k, v|
296
- config_klass.send(:"#{k}=", v)
296
+ if k == :before_notify
297
+ config_klass.send(k, v)
298
+ else
299
+ config_klass.send(:"#{k}=", v)
300
+ end
297
301
  end
298
302
  end
299
303
  end
@@ -158,7 +158,7 @@ describe ExceptionHandling do
158
158
 
159
159
  context "#log_warning" do
160
160
  it "have empty array as a backtrace" do
161
- expected_args = if RUBY_VERSION < '2.7'
161
+ expected_args = if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.7')
162
162
  [ExceptionHandling::Warning, anything]
163
163
  else
164
164
  [ExceptionHandling::Warning]
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.11.3
4
+ version: 2.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-07 00:00:00.000000000 Z
11
+ date: 2022-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer