exception_handling 2.17.0.pre.tstarck.1 → 3.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +0 -3
- data/.ruby-version +1 -1
- data/Gemfile +16 -12
- data/Gemfile.lock +138 -153
- data/README.md +21 -90
- data/Rakefile +11 -8
- data/exception_handling.gemspec +10 -14
- data/lib/exception_handling/exception_info.rb +11 -15
- data/lib/exception_handling/honeybadger_callbacks.rb +59 -0
- data/lib/exception_handling/log_stub_error.rb +1 -2
- data/lib/exception_handling/methods.rb +53 -6
- data/lib/exception_handling/testing.rb +10 -20
- data/lib/exception_handling/version.rb +1 -1
- data/lib/exception_handling.rb +34 -135
- data/semaphore_ci/setup.sh +3 -0
- data/{spec → test}/helpers/exception_helpers.rb +2 -2
- data/{spec/spec_helper.rb → test/test_helper.rb} +45 -75
- data/test/unit/exception_handling/exception_catalog_test.rb +85 -0
- data/test/unit/exception_handling/exception_description_test.rb +82 -0
- data/{spec/unit/exception_handling/exception_info_spec.rb → test/unit/exception_handling/exception_info_test.rb} +114 -170
- data/test/unit/exception_handling/honeybadger_callbacks_test.rb +122 -0
- data/{spec/unit/exception_handling/log_error_stub_spec.rb → test/unit/exception_handling/log_error_stub_test.rb} +22 -38
- data/{spec/unit/exception_handling/mailer_spec.rb → test/unit/exception_handling/mailer_test.rb} +18 -17
- data/test/unit/exception_handling/methods_test.rb +84 -0
- data/test/unit/exception_handling/sensu_test.rb +52 -0
- data/test/unit/exception_handling_test.rb +1109 -0
- metadata +59 -99
- data/.github/CODEOWNERS +0 -1
- data/.github/workflows/pipeline.yml +0 -36
- data/.rspec +0 -3
- data/.tool-versions +0 -1
- data/Appraisals +0 -19
- data/CHANGELOG.md +0 -149
- data/gemfiles/rails_5.gemfile +0 -18
- data/gemfiles/rails_6.gemfile +0 -18
- data/gemfiles/rails_7.gemfile +0 -18
- data/lib/exception_handling/escalate_callback.rb +0 -19
- data/lib/exception_handling/logging_methods.rb +0 -27
- data/spec/rake_test_warning_false.rb +0 -20
- data/spec/unit/exception_handling/escalate_callback_spec.rb +0 -81
- data/spec/unit/exception_handling/exception_catalog_spec.rb +0 -85
- data/spec/unit/exception_handling/exception_description_spec.rb +0 -82
- data/spec/unit/exception_handling/logging_methods_spec.rb +0 -38
- data/spec/unit/exception_handling/methods_spec.rb +0 -105
- data/spec/unit/exception_handling/sensu_spec.rb +0 -51
- data/spec/unit/exception_handling_spec.rb +0 -1465
- /data/{spec → test}/helpers/controller_helpers.rb +0 -0
metadata
CHANGED
@@ -1,85 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exception_handling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- Colin Kelley
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: actionpack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '4.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '4.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activesupport
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '5.2'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '5.2'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: contextual_logger
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
47
|
+
version: '4.2'
|
62
48
|
type: :runtime
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
52
|
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
54
|
+
version: '4.2'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
56
|
+
name: contextual_logger
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
|
-
- - "
|
59
|
+
- - ">="
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0
|
61
|
+
version: '0'
|
76
62
|
type: :runtime
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
|
-
- - "
|
66
|
+
- - ">="
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0
|
68
|
+
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: eventmachine
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,63 +81,43 @@ dependencies:
|
|
95
81
|
- !ruby/object:Gem::Version
|
96
82
|
version: '1.0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
84
|
+
name: hobo_support
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
|
-
- - "
|
87
|
+
- - ">="
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0
|
89
|
+
version: '0'
|
104
90
|
type: :runtime
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
|
-
- - "
|
94
|
+
- - ">="
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0
|
96
|
+
version: '0'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
98
|
+
name: invoca-utils
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
101
|
- - "~>"
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
103
|
+
version: '0.0'
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
108
|
- - "~>"
|
123
109
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: net-smtp
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
110
|
+
version: '0.0'
|
139
111
|
description: Exception handling logger/emailer
|
140
112
|
email:
|
141
|
-
-
|
113
|
+
- colindkelley@gmail.com
|
142
114
|
executables: []
|
143
115
|
extensions: []
|
144
116
|
extra_rdoc_files: []
|
145
117
|
files:
|
146
|
-
- ".github/CODEOWNERS"
|
147
|
-
- ".github/workflows/pipeline.yml"
|
148
118
|
- ".gitignore"
|
149
|
-
- ".rspec"
|
150
119
|
- ".rubocop.yml"
|
151
120
|
- ".ruby-version"
|
152
|
-
- ".tool-versions"
|
153
|
-
- Appraisals
|
154
|
-
- CHANGELOG.md
|
155
121
|
- Gemfile
|
156
122
|
- Gemfile.lock
|
157
123
|
- LICENSE
|
@@ -159,35 +125,30 @@ files:
|
|
159
125
|
- Rakefile
|
160
126
|
- config/exception_filters.yml
|
161
127
|
- exception_handling.gemspec
|
162
|
-
- gemfiles/rails_5.gemfile
|
163
|
-
- gemfiles/rails_6.gemfile
|
164
|
-
- gemfiles/rails_7.gemfile
|
165
128
|
- lib/exception_handling.rb
|
166
|
-
- lib/exception_handling/escalate_callback.rb
|
167
129
|
- lib/exception_handling/exception_catalog.rb
|
168
130
|
- lib/exception_handling/exception_description.rb
|
169
131
|
- lib/exception_handling/exception_info.rb
|
132
|
+
- lib/exception_handling/honeybadger_callbacks.rb
|
170
133
|
- lib/exception_handling/log_stub_error.rb
|
171
|
-
- lib/exception_handling/logging_methods.rb
|
172
134
|
- lib/exception_handling/mailer.rb
|
173
135
|
- lib/exception_handling/methods.rb
|
174
136
|
- lib/exception_handling/sensu.rb
|
175
137
|
- lib/exception_handling/testing.rb
|
176
138
|
- lib/exception_handling/version.rb
|
177
|
-
-
|
178
|
-
-
|
179
|
-
-
|
180
|
-
-
|
181
|
-
-
|
182
|
-
-
|
183
|
-
-
|
184
|
-
-
|
185
|
-
-
|
186
|
-
-
|
187
|
-
-
|
188
|
-
-
|
189
|
-
-
|
190
|
-
- spec/unit/exception_handling_spec.rb
|
139
|
+
- semaphore_ci/setup.sh
|
140
|
+
- test/helpers/controller_helpers.rb
|
141
|
+
- test/helpers/exception_helpers.rb
|
142
|
+
- test/test_helper.rb
|
143
|
+
- test/unit/exception_handling/exception_catalog_test.rb
|
144
|
+
- test/unit/exception_handling/exception_description_test.rb
|
145
|
+
- test/unit/exception_handling/exception_info_test.rb
|
146
|
+
- test/unit/exception_handling/honeybadger_callbacks_test.rb
|
147
|
+
- test/unit/exception_handling/log_error_stub_test.rb
|
148
|
+
- test/unit/exception_handling/mailer_test.rb
|
149
|
+
- test/unit/exception_handling/methods_test.rb
|
150
|
+
- test/unit/exception_handling/sensu_test.rb
|
151
|
+
- test/unit/exception_handling_test.rb
|
191
152
|
- views/exception_handling/mailer/escalate_custom.html.erb
|
192
153
|
- views/exception_handling/mailer/escalation_notification.html.erb
|
193
154
|
- views/exception_handling/mailer/log_parser_exception_notification.html.erb
|
@@ -196,7 +157,7 @@ licenses: []
|
|
196
157
|
metadata:
|
197
158
|
source_code_uri: https://github.com/Invoca/exception_handling
|
198
159
|
allowed_push_host: https://rubygems.org
|
199
|
-
post_install_message:
|
160
|
+
post_install_message:
|
200
161
|
rdoc_options: []
|
201
162
|
require_paths:
|
202
163
|
- lib
|
@@ -204,30 +165,29 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
204
165
|
requirements:
|
205
166
|
- - ">="
|
206
167
|
- !ruby/object:Gem::Version
|
207
|
-
version:
|
168
|
+
version: '0'
|
208
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
170
|
requirements:
|
210
171
|
- - ">"
|
211
172
|
- !ruby/object:Gem::Version
|
212
173
|
version: 1.3.1
|
213
174
|
requirements: []
|
214
|
-
|
215
|
-
|
175
|
+
rubyforge_project:
|
176
|
+
rubygems_version: 2.6.13
|
177
|
+
signing_key:
|
216
178
|
specification_version: 4
|
217
179
|
summary: Invoca's exception handling logger/emailer layer, based on exception_notifier.
|
218
180
|
Works with Rails or EventMachine or EventMachine+Synchrony.
|
219
181
|
test_files:
|
220
|
-
-
|
221
|
-
-
|
222
|
-
-
|
223
|
-
-
|
224
|
-
-
|
225
|
-
-
|
226
|
-
-
|
227
|
-
-
|
228
|
-
-
|
229
|
-
-
|
230
|
-
-
|
231
|
-
-
|
232
|
-
- spec/unit/exception_handling/sensu_spec.rb
|
233
|
-
- spec/unit/exception_handling_spec.rb
|
182
|
+
- test/helpers/controller_helpers.rb
|
183
|
+
- test/helpers/exception_helpers.rb
|
184
|
+
- test/test_helper.rb
|
185
|
+
- test/unit/exception_handling/exception_catalog_test.rb
|
186
|
+
- test/unit/exception_handling/exception_description_test.rb
|
187
|
+
- test/unit/exception_handling/exception_info_test.rb
|
188
|
+
- test/unit/exception_handling/honeybadger_callbacks_test.rb
|
189
|
+
- test/unit/exception_handling/log_error_stub_test.rb
|
190
|
+
- test/unit/exception_handling/mailer_test.rb
|
191
|
+
- test/unit/exception_handling/methods_test.rb
|
192
|
+
- test/unit/exception_handling/sensu_test.rb
|
193
|
+
- test/unit/exception_handling_test.rb
|
data/.github/CODEOWNERS
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
* @Invoca/octothorpe
|
@@ -1,36 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Pipeline
|
3
|
-
on: [push]
|
4
|
-
jobs:
|
5
|
-
tests:
|
6
|
-
name: Unit Tests
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
strategy:
|
9
|
-
fail-fast: false
|
10
|
-
matrix:
|
11
|
-
ruby: [2.7, '3.0', 3.1, 3.2, 3.3]
|
12
|
-
gemfile:
|
13
|
-
- Gemfile
|
14
|
-
- gemfiles/rails_5.gemfile
|
15
|
-
- gemfiles/rails_6.gemfile
|
16
|
-
- gemfiles/rails_7.gemfile
|
17
|
-
exclude:
|
18
|
-
- gemfile: gemfiles/rails_5.gemfile
|
19
|
-
ruby: '3.0'
|
20
|
-
- gemfile: gemfiles/rails_5.gemfile
|
21
|
-
ruby: 3.1
|
22
|
-
- gemfile: gemfiles/rails_5.gemfile
|
23
|
-
ruby: 3.2
|
24
|
-
- gemfile: gemfiles/rails_5.gemfile
|
25
|
-
ruby: 3.3
|
26
|
-
env:
|
27
|
-
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
28
|
-
steps:
|
29
|
-
- uses: actions/checkout@v2
|
30
|
-
- uses: ruby/setup-ruby@v1
|
31
|
-
with:
|
32
|
-
ruby-version: ${{ matrix.ruby }}
|
33
|
-
bundler: 2.3.26
|
34
|
-
bundler-cache: true
|
35
|
-
- name: Unit tests
|
36
|
-
run: bundle exec rspec
|
data/.rspec
DELETED
data/.tool-versions
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ruby 2.7.5
|
data/Appraisals
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
appraise "rails-5" do
|
4
|
-
gem 'actionmailer', '~> 5.2'
|
5
|
-
gem 'actionpack', '~> 5.2'
|
6
|
-
gem 'activesupport', '~> 5.2'
|
7
|
-
end
|
8
|
-
|
9
|
-
appraise "rails-6" do
|
10
|
-
gem 'actionmailer', '~> 6.0'
|
11
|
-
gem 'actionpack', '~> 6.0'
|
12
|
-
gem 'activesupport', '~> 6.0'
|
13
|
-
end
|
14
|
-
|
15
|
-
appraise "rails-7" do
|
16
|
-
gem 'actionmailer', '~> 7.0'
|
17
|
-
gem 'actionpack', '~> 7.0'
|
18
|
-
gem 'activesupport', '~> 7.0'
|
19
|
-
end
|
data/CHANGELOG.md
DELETED
@@ -1,149 +0,0 @@
|
|
1
|
-
# CHANGELOG for `exception_handling`
|
2
|
-
|
3
|
-
Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
4
|
-
|
5
|
-
**Note:** this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
|
-
|
7
|
-
## [2.17.0] - Unreleased
|
8
|
-
### Added
|
9
|
-
- Add interface for tagging exceptions sent to honeybadger with values from the log context.
|
10
|
-
- `ExceptionHandling.add_honeybadger_tag_from_log_context`
|
11
|
-
- Added Ruby 3.2 and 3.3 to the CI test matrix
|
12
|
-
|
13
|
-
### Changed
|
14
|
-
- Require ruby version 2.7 or greater
|
15
|
-
|
16
|
-
### Removed
|
17
|
-
- Removed Ruby versions 2.5 and 2.6 from the CI test matrix.
|
18
|
-
|
19
|
-
|
20
|
-
## [2.16.0] - 2023-05-01
|
21
|
-
### Added
|
22
|
-
- Add interface for automatically adding honeybadger tags `ExceptionHandling.honeybadger_auto_tagger=`
|
23
|
-
|
24
|
-
## [2.15.0] - 2023-03-07
|
25
|
-
### Added
|
26
|
-
- Added support for ActionMailer 7.x
|
27
|
-
- Added support for ActionPack 7.x
|
28
|
-
- Added support for ActiveSupport 7.x
|
29
|
-
|
30
|
-
## [2.14.0] - 2023-02-22
|
31
|
-
### Added
|
32
|
-
- Added support for plumbing tags through to honeybadger via the `honeybadger_tags` log context parameter
|
33
|
-
|
34
|
-
## [2.13.0] - 2022-09-15
|
35
|
-
### Added
|
36
|
-
- Added an option for removing the 'exception_handling.' prefix from metric names in ExceptionHandling::default_metric_name
|
37
|
-
|
38
|
-
## [2.12.0] - 2022-08-04
|
39
|
-
### Added
|
40
|
-
- Support for passing additional Honeybadger configuration parameters
|
41
|
-
|
42
|
-
## [2.11.3] - 2022-04-07
|
43
|
-
### Fixed
|
44
|
-
- Fixed bug in ruby 2.7+ where `digest` was not required by default
|
45
|
-
|
46
|
-
## [2.11.2] - 2022-04-04
|
47
|
-
### Fixed
|
48
|
-
- Fixed Ruby 3+ bug where arguments where not being passed using ** operator when writing to the logger
|
49
|
-
|
50
|
-
## [2.11.1] - 2022-04-04
|
51
|
-
### Fixed
|
52
|
-
- Fixed bug in ruby 3+ where `contextual_logger` was missing ruby 3+ support
|
53
|
-
|
54
|
-
## [2.11.0] - 2022-03-29
|
55
|
-
### Added
|
56
|
-
- Added support for rails 2.7 and 3+
|
57
|
-
|
58
|
-
### Removed
|
59
|
-
- Removed support for Rails 4
|
60
|
-
|
61
|
-
## [2.10.0] - 2022-03-09
|
62
|
-
### Removed
|
63
|
-
- Remove custom object inspection
|
64
|
-
This removed Honeybadger-specific callbacks (`lib/exception_handling/honeybadger_callbacks.rb`)
|
65
|
-
|
66
|
-
### Deprecated
|
67
|
-
- Deprecated use of Honeybadger fork
|
68
|
-
|
69
|
-
## [2.9.0] - 2020-03-02
|
70
|
-
### Added
|
71
|
-
- Automatically registers with the `escalate` gem's `on_escalate` callback.
|
72
|
-
|
73
|
-
## [2.8.1] - 2020-12-01
|
74
|
-
### Added
|
75
|
-
- If the `log_context` key `honeybadger_grouping:` is set, pass that value to the `controller:` keyword argument of `HoneyBadger.notify`.
|
76
|
-
|
77
|
-
## [2.8.0] - 2020-10-19
|
78
|
-
### Deprecated
|
79
|
-
- Deprecated Email Escalation Methods: `escalate_to_production_support`, `escalate_error`, `escalate_warning`, `ensure_escalation`
|
80
|
-
|
81
|
-
## [2.7.0] - 2020-10-14
|
82
|
-
### Added
|
83
|
-
- Added `LoggingMethods` as a replacement for `Methods` without setting controller or checking for long controller action.
|
84
|
-
### Deprecated
|
85
|
-
- Deprecated `Methods` in favor of `LoggingMethods`.
|
86
|
-
|
87
|
-
## [2.6.1] - 2020-10-14
|
88
|
-
### Fixed
|
89
|
-
- Fixed honeybadger_context_data to always merge `current_context_for_thread`, even if `log_context:` is passed as `nil`.
|
90
|
-
|
91
|
-
## [2.6.0] - 2020-08-26
|
92
|
-
### Changed
|
93
|
-
- Calling `log_warning` will now log with Severity::WARNING rather than FATAL.
|
94
|
-
- Reordered the logging to put the exception class next to the message.
|
95
|
-
|
96
|
-
## [2.5.0] - 2020-08-19
|
97
|
-
### Added
|
98
|
-
- The `**log_context` passed to `log_error`/`log_warning`/`log_info` is now
|
99
|
-
passed into `Honeybadger.notify()`, in `context: { log_context: ... }`.
|
100
|
-
|
101
|
-
### Fixed
|
102
|
-
- Silenced test warning noise by no longer running ruby -w.
|
103
|
-
- Renamed a constant to ALLOWLIST.
|
104
|
-
|
105
|
-
## [2.4.4] - 2020-08-10
|
106
|
-
### Fixed
|
107
|
-
- `ExceptionHandling.logger = nil` no longer displays an "implicit extend" deprecation warning.
|
108
|
-
|
109
|
-
## [2.4.3] - 2020-05-14
|
110
|
-
### Deprecated
|
111
|
-
- In `ExceptionHandling.logger=`, implicit `logger.extend ContextualLogger::LoggerMixin` is now deprecated.
|
112
|
-
This will be removed in version 3.0 and an `ArgumentError` will be raised if the logger
|
113
|
-
doesn't have that mixin. Instead of this implicit behavior, you should explicitly either `extend`
|
114
|
-
your logger instance or `include` that mixin into your `Logger` class.
|
115
|
-
|
116
|
-
## [2.4.2] - 2020-05-11
|
117
|
-
### Added
|
118
|
-
- Added support for rails 5 and 6.
|
119
|
-
- Added appraisal tests for all supported rails version: 4/5/6
|
120
|
-
|
121
|
-
### Changed
|
122
|
-
- Updated various test to be compatible with rails version 4/5/6
|
123
|
-
- Updated the CI pipeline to test against all three supported versions of rails
|
124
|
-
|
125
|
-
## [2.4.1] - 2020-04-29
|
126
|
-
### Changed
|
127
|
-
- No longer depends on hobo_support. Uses invoca-utils 0.3 instead.
|
128
|
-
|
129
|
-
[2.16.0]: https://github.com/Invoca/exception_handling/compare/v2.15.0...v2.16.0
|
130
|
-
[2.15.0]: https://github.com/Invoca/exception_handling/compare/v2.14.0...v2.15.0
|
131
|
-
[2.14.0]: https://github.com/Invoca/exception_handling/compare/v2.13.0...v2.14.0
|
132
|
-
[2.13.0]: https://github.com/Invoca/exception_handling/compare/v2.12.0...v2.13.0
|
133
|
-
[2.12.0]: https://github.com/Invoca/exception_handling/compare/v2.11.3...v2.12.0
|
134
|
-
[2.11.3]: https://github.com/Invoca/exception_handling/compare/v2.11.2...v2.11.3
|
135
|
-
[2.11.2]: https://github.com/Invoca/exception_handling/compare/v2.11.1...v2.11.2
|
136
|
-
[2.11.1]: https://github.com/Invoca/exception_handling/compare/v2.11.0...v2.11.1
|
137
|
-
[2.11.0]: https://github.com/Invoca/exception_handling/compare/v2.10.0...v2.11.0
|
138
|
-
[2.10.0]: https://github.com/Invoca/exception_handling/compare/v2.9.0...v2.10.0
|
139
|
-
[2.9.0]: https://github.com/Invoca/exception_handling/compare/v2.8.1...v2.9.0
|
140
|
-
[2.8.1]: https://github.com/Invoca/exception_handling/compare/v2.8.0...v2.8.1
|
141
|
-
[2.8.0]: https://github.com/Invoca/exception_handling/compare/v2.7.0...v2.8.0
|
142
|
-
[2.7.0]: https://github.com/Invoca/exception_handling/compare/v2.6.1...v2.7.0
|
143
|
-
[2.6.1]: https://github.com/Invoca/exception_handling/compare/v2.6.0...v2.6.1
|
144
|
-
[2.6.0]: https://github.com/Invoca/exception_handling/compare/v2.5.0...v2.6.0
|
145
|
-
[2.5.0]: https://github.com/Invoca/exception_handling/compare/v2.4.4...v2.5.0
|
146
|
-
[2.4.4]: https://github.com/Invoca/exception_handling/compare/v2.4.3...v2.4.4
|
147
|
-
[2.4.3]: https://github.com/Invoca/exception_handling/compare/v2.4.2...v2.4.3
|
148
|
-
[2.4.2]: https://github.com/Invoca/exception_handling/compare/v2.4.1...v2.4.2
|
149
|
-
[2.4.1]: https://github.com/Invoca/exception_handling/compare/v2.4.0...v2.4.1
|
data/gemfiles/rails_5.gemfile
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "appraisal", "~> 2.2"
|
6
|
-
gem "honeybadger", "~> 4.11"
|
7
|
-
gem "pry"
|
8
|
-
gem "pry-byebug"
|
9
|
-
gem "rake"
|
10
|
-
gem "rspec"
|
11
|
-
gem "rspec_junit_formatter"
|
12
|
-
gem "rubocop"
|
13
|
-
gem "test-unit"
|
14
|
-
gem "actionmailer", "~> 5.2"
|
15
|
-
gem "actionpack", "~> 5.2"
|
16
|
-
gem "activesupport", "~> 5.2"
|
17
|
-
|
18
|
-
gemspec path: "../"
|
data/gemfiles/rails_6.gemfile
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "appraisal", "~> 2.2"
|
6
|
-
gem "honeybadger", "~> 4.11"
|
7
|
-
gem "pry"
|
8
|
-
gem "pry-byebug"
|
9
|
-
gem "rake"
|
10
|
-
gem "rspec"
|
11
|
-
gem "rspec_junit_formatter"
|
12
|
-
gem "rubocop"
|
13
|
-
gem "test-unit"
|
14
|
-
gem "actionmailer", "~> 6.0"
|
15
|
-
gem "actionpack", "~> 6.0"
|
16
|
-
gem "activesupport", "~> 6.0"
|
17
|
-
|
18
|
-
gemspec path: "../"
|
data/gemfiles/rails_7.gemfile
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "appraisal", "~> 2.2"
|
6
|
-
gem "honeybadger", "~> 4.11"
|
7
|
-
gem "pry"
|
8
|
-
gem "pry-byebug"
|
9
|
-
gem "rake"
|
10
|
-
gem "rspec"
|
11
|
-
gem "rspec_junit_formatter"
|
12
|
-
gem "rubocop"
|
13
|
-
gem "test-unit"
|
14
|
-
gem "actionmailer", "~> 7.0"
|
15
|
-
gem "actionpack", "~> 7.0"
|
16
|
-
gem "activesupport", "~> 7.0"
|
17
|
-
|
18
|
-
gemspec path: "../"
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'escalate'
|
4
|
-
|
5
|
-
module ExceptionHandling
|
6
|
-
module EscalateCallback
|
7
|
-
class << self
|
8
|
-
def register_if_configured!
|
9
|
-
register! if ::ExceptionHandling.configured?
|
10
|
-
end
|
11
|
-
|
12
|
-
def register!
|
13
|
-
Escalate.on_escalate(log_first: false) do |exception, location_message, **context|
|
14
|
-
::ExceptionHandling.log_error(exception, location_message, **context)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'active_support/concern'
|
4
|
-
require 'active_support/core_ext/module/delegation.rb'
|
5
|
-
|
6
|
-
module ExceptionHandling
|
7
|
-
module LoggingMethods # included on models and controllers
|
8
|
-
extend ActiveSupport::Concern
|
9
|
-
|
10
|
-
protected
|
11
|
-
|
12
|
-
delegate :log_error_rack, :log_warning, :log_info, :log_debug, :escalate_error, :escalate_warning, :ensure_escalation, :alert_warning, :log_error, to: ExceptionHandling
|
13
|
-
|
14
|
-
def ensure_safe(exception_context = "")
|
15
|
-
yield
|
16
|
-
rescue => ex
|
17
|
-
log_error ex, exception_context
|
18
|
-
nil
|
19
|
-
end
|
20
|
-
|
21
|
-
def ensure_alert(*args)
|
22
|
-
ExceptionHandling.ensure_alert(*args) do
|
23
|
-
yield
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Rake 11+ has a misfeature where @warning = true by default
|
4
|
-
# See https://github.com/ruby/rake/pull/97/files
|
5
|
-
# This causes all tests to be run with `ruby -w`, causing a huge number of warnings
|
6
|
-
# from gems we don't control and overwhelming our test output.
|
7
|
-
# This patch reverts that.
|
8
|
-
|
9
|
-
_ = Rake::TestTask
|
10
|
-
|
11
|
-
class Rake::TestTask
|
12
|
-
module SetWarningFalseMixin
|
13
|
-
def initialize(*args)
|
14
|
-
super
|
15
|
-
self.warning = false
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
prepend SetWarningFalseMixin
|
20
|
-
end
|