exception_handling 2.4.3 → 2.4.4

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: '04608c37d267c8d5f06f65d22fe9354248e6701670c93e7dbb9de6df1e657dc4'
4
- data.tar.gz: 13c4012bde92f3bb67001a623759c0cb84ec145e8fdec64be37f6ed1a9b8d152
3
+ metadata.gz: de262141b33b7c4cb5e68018569d0465144097e36d0b85c268646cb0bfb5eb3f
4
+ data.tar.gz: cdbd41bfd1df237f6d6c3c1788ac52a0ed75314c5fbf63b3cb549edc21aeb3ed
5
5
  SHA512:
6
- metadata.gz: 960d619118db1400aec6a85e292c7f41cfb61f3b6ba216f82bd020cf3248d60628afb2d343ad77bb1e574d64ec07d71437a73d46e70d78f5259f1347b6400325
7
- data.tar.gz: 7233273b00df7d67d932c649686bf0b51cc8233a820ac4107778d2ae120fca0b37bc05e4573002cc704e67260fddaa8f0e13877f948a1db4e48dc0fe487d91b1
6
+ metadata.gz: a64db1560f94c6c62ced1d7b5afadd1ece6618ee62e41db250b2384e8193b29ec35e39b9389edb2a1e130b2aebf77b4e7851b8173a705b8a7b620284f62e1b9e
7
+ data.tar.gz: c2efcf1378cf70651ccd1e2e4f3f0f85ff4fe49714f7547d3b4517a0afb1c657f7a8def9dd4339aa7bd510fc714d53b27cc7120fe109fa12eea2c8bbfe98de6e
@@ -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.4.4] - 2020-08-10
8
+ ### Fixed
9
+ - `ExceptionHandling.logger = nil` no longer displays an "implicit extend" deprecation warning.
10
+
7
11
  ## [2.4.3] - 2020-05-14
8
12
  ### Deprecated
9
13
  - In `ExceptionHandling.logger=`, implicit `logger.extend ContextualLogger::LoggerMixin` is now deprecated.
@@ -24,6 +28,7 @@ Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0
24
28
  ### Changed
25
29
  - No longer depends on hobo_support. Uses invoca-utils 0.3 instead.
26
30
 
31
+ [2.4.3]: https://github.com/Invoca/exception_handling/compare/v2.4.3...v2.4.4
27
32
  [2.4.3]: https://github.com/Invoca/exception_handling/compare/v2.4.2...v2.4.3
28
33
  [2.4.2]: https://github.com/Invoca/exception_handling/compare/v2.4.1...v2.4.2
29
34
  [2.4.1]: https://github.com/Invoca/exception_handling/compare/v2.4.0...v2.4.1
@@ -8,7 +8,7 @@ GIT
8
8
  PATH
9
9
  remote: .
10
10
  specs:
11
- exception_handling (2.4.3)
11
+ exception_handling (2.4.4)
12
12
  actionmailer (>= 4.2, < 7.0)
13
13
  actionpack (>= 4.2, < 7.0)
14
14
  activesupport (>= 4.2, < 7.0)
@@ -55,7 +55,7 @@ GEM
55
55
  builder (3.2.3)
56
56
  coderay (1.1.2)
57
57
  concurrent-ruby (1.1.5)
58
- contextual_logger (0.7.0)
58
+ contextual_logger (0.8.0)
59
59
  activesupport
60
60
  json
61
61
  crass (1.0.6)
@@ -65,10 +65,10 @@ GEM
65
65
  activesupport (>= 4.2.0)
66
66
  i18n (0.9.5)
67
67
  concurrent-ruby (~> 1.0)
68
- invoca-utils (0.3.0)
68
+ invoca-utils (0.4.1)
69
69
  jaro_winkler (1.5.3)
70
- json (2.3.0)
71
- loofah (2.5.0)
70
+ json (2.3.1)
71
+ loofah (2.6.0)
72
72
  crass (~> 1.0.2)
73
73
  nokogiri (>= 1.5.9)
74
74
  mail (2.7.1)
@@ -82,7 +82,7 @@ GEM
82
82
  builder
83
83
  minitest (>= 5.0)
84
84
  ruby-progressbar
85
- nokogiri (1.10.9)
85
+ nokogiri (1.10.10)
86
86
  mini_portile2 (~> 2.4.0)
87
87
  parallel (1.17.0)
88
88
  parser (2.6.3.0)
@@ -57,7 +57,7 @@ module ExceptionHandling # never included
57
57
  Deprecation3_0 = ActiveSupport::Deprecation.new('3.0', 'exception_handling')
58
58
 
59
59
  def logger=(logger)
60
- @logger = if logger.is_a?(ContextualLogger::LoggerMixin)
60
+ @logger = if logger.nil? || logger.is_a?(ContextualLogger::LoggerMixin)
61
61
  logger
62
62
  else
63
63
  Deprecation3_0.deprecation_warning('implicit extend with ContextualLogger::LoggerMixin', 'extend your logger instance or include into your logger class first')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ExceptionHandling
4
- VERSION = '2.4.3'
4
+ VERSION = '2.4.4'
5
5
  end
@@ -126,6 +126,11 @@ class ExceptionHandlingTest < ActiveSupport::TestCase
126
126
  assert_equal ancestors, ExceptionHandling.logger.singleton_class.ancestors.*.name
127
127
  end
128
128
 
129
+ should "allow logger = nil (no deprecation warning)" do
130
+ mock(STDERR).puts(/DEPRECATION WARNING/).never
131
+ ExceptionHandling.logger = nil
132
+ end
133
+
129
134
  should "[deprecated] mix in ContextualLogger::Mixin if not there" do
130
135
  mock(STDERR).puts(/DEPRECATION WARNING: implicit extend with ContextualLogger::LoggerMixin is deprecated and will be removed from exception_handling 3\.0/)
131
136
  logger = Logger.new('/dev/null')
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.4.3
4
+ version: 2.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-14 00:00:00.000000000 Z
11
+ date: 2020-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer