exception_handling 2.16.0 → 3.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +0 -3
  3. data/.ruby-version +1 -1
  4. data/Gemfile +16 -12
  5. data/Gemfile.lock +114 -109
  6. data/README.md +21 -61
  7. data/Rakefile +11 -8
  8. data/exception_handling.gemspec +10 -12
  9. data/lib/exception_handling/exception_info.rb +11 -15
  10. data/lib/exception_handling/honeybadger_callbacks.rb +59 -0
  11. data/lib/exception_handling/log_stub_error.rb +1 -2
  12. data/lib/exception_handling/methods.rb +53 -6
  13. data/lib/exception_handling/testing.rb +10 -20
  14. data/lib/exception_handling/version.rb +1 -1
  15. data/lib/exception_handling.rb +34 -95
  16. data/semaphore_ci/setup.sh +3 -0
  17. data/{spec → test}/helpers/exception_helpers.rb +2 -2
  18. data/{spec/spec_helper.rb → test/test_helper.rb} +42 -63
  19. data/test/unit/exception_handling/exception_catalog_test.rb +85 -0
  20. data/test/unit/exception_handling/exception_description_test.rb +82 -0
  21. data/{spec/unit/exception_handling/exception_info_spec.rb → test/unit/exception_handling/exception_info_test.rb} +114 -170
  22. data/test/unit/exception_handling/honeybadger_callbacks_test.rb +122 -0
  23. data/{spec/unit/exception_handling/log_error_stub_spec.rb → test/unit/exception_handling/log_error_stub_test.rb} +22 -38
  24. data/{spec/unit/exception_handling/mailer_spec.rb → test/unit/exception_handling/mailer_test.rb} +18 -17
  25. data/test/unit/exception_handling/methods_test.rb +84 -0
  26. data/test/unit/exception_handling/sensu_test.rb +52 -0
  27. data/test/unit/exception_handling_test.rb +1109 -0
  28. metadata +60 -100
  29. data/.github/CODEOWNERS +0 -1
  30. data/.github/workflows/pipeline.yml +0 -40
  31. data/.rspec +0 -3
  32. data/.tool-versions +0 -1
  33. data/Appraisals +0 -19
  34. data/CHANGELOG.md +0 -136
  35. data/gemfiles/rails_5.gemfile +0 -18
  36. data/gemfiles/rails_6.gemfile +0 -18
  37. data/gemfiles/rails_7.gemfile +0 -18
  38. data/lib/exception_handling/escalate_callback.rb +0 -19
  39. data/lib/exception_handling/logging_methods.rb +0 -27
  40. data/spec/rake_test_warning_false.rb +0 -20
  41. data/spec/unit/exception_handling/escalate_callback_spec.rb +0 -81
  42. data/spec/unit/exception_handling/exception_catalog_spec.rb +0 -85
  43. data/spec/unit/exception_handling/exception_description_spec.rb +0 -82
  44. data/spec/unit/exception_handling/logging_methods_spec.rb +0 -38
  45. data/spec/unit/exception_handling/methods_spec.rb +0 -105
  46. data/spec/unit/exception_handling/sensu_spec.rb +0 -51
  47. data/spec/unit/exception_handling_spec.rb +0 -1361
  48. /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: 2.16.0
4
+ version: 3.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
- - Invoca
8
- autorequire:
7
+ - Colin Kelley
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-01 00:00:00.000000000 Z
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: '5.2'
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: '5.2'
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: '5.2'
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: '5.2'
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: '1.0'
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: '1.0'
54
+ version: '4.2'
69
55
  - !ruby/object:Gem::Dependency
70
- name: escalate
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.3'
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.3'
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: invoca-utils
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.3'
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.3'
96
+ version: '0'
111
97
  - !ruby/object:Gem::Dependency
112
- name: psych
98
+ name: invoca-utils
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
101
  - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: '3.0'
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: '3.0'
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
- - development@invoca.com
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
- - spec/helpers/controller_helpers.rb
178
- - spec/helpers/exception_helpers.rb
179
- - spec/rake_test_warning_false.rb
180
- - spec/spec_helper.rb
181
- - spec/unit/exception_handling/escalate_callback_spec.rb
182
- - spec/unit/exception_handling/exception_catalog_spec.rb
183
- - spec/unit/exception_handling/exception_description_spec.rb
184
- - spec/unit/exception_handling/exception_info_spec.rb
185
- - spec/unit/exception_handling/log_error_stub_spec.rb
186
- - spec/unit/exception_handling/logging_methods_spec.rb
187
- - spec/unit/exception_handling/mailer_spec.rb
188
- - spec/unit/exception_handling/methods_spec.rb
189
- - spec/unit/exception_handling/sensu_spec.rb
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
@@ -207,27 +168,26 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
168
  version: '0'
208
169
  required_rubygems_version: !ruby/object:Gem::Requirement
209
170
  requirements:
210
- - - ">="
171
+ - - ">"
211
172
  - !ruby/object:Gem::Version
212
- version: '0'
173
+ version: 1.3.1
213
174
  requirements: []
214
- rubygems_version: 3.1.6
215
- signing_key:
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
- - spec/helpers/controller_helpers.rb
221
- - spec/helpers/exception_helpers.rb
222
- - spec/rake_test_warning_false.rb
223
- - spec/spec_helper.rb
224
- - spec/unit/exception_handling/escalate_callback_spec.rb
225
- - spec/unit/exception_handling/exception_catalog_spec.rb
226
- - spec/unit/exception_handling/exception_description_spec.rb
227
- - spec/unit/exception_handling/exception_info_spec.rb
228
- - spec/unit/exception_handling/log_error_stub_spec.rb
229
- - spec/unit/exception_handling/logging_methods_spec.rb
230
- - spec/unit/exception_handling/mailer_spec.rb
231
- - spec/unit/exception_handling/methods_spec.rb
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,40 +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.5, 2.6, 2.7, '3.0', 3.1]
12
- gemfile:
13
- - Gemfile
14
- - gemfiles/rails_5.gemfile
15
- - gemfiles/rails_6.gemfile
16
- - gemfiles/rails_7.gemfile
17
- exclude:
18
- - gemfile: Gemfile
19
- ruby: 2.5
20
- - gemfile: gemfiles/rails_7.gemfile
21
- ruby: 2.5
22
- - gemfile: Gemfile
23
- ruby: 2.6
24
- - gemfile: gemfiles/rails_7.gemfile
25
- ruby: 2.6
26
- - gemfile: gemfiles/rails_5.gemfile
27
- ruby: '3.0'
28
- - gemfile: gemfiles/rails_5.gemfile
29
- ruby: 3.1
30
- env:
31
- BUNDLE_GEMFILE: ${{ matrix.gemfile }}
32
- steps:
33
- - uses: actions/checkout@v2
34
- - uses: ruby/setup-ruby@v1
35
- with:
36
- ruby-version: ${{ matrix.ruby }}
37
- bundler: 2.3.26
38
- bundler-cache: true
39
- - name: Unit tests
40
- run: bundle exec rspec
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --require spec_helper
2
- --format progress
3
- --color
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,136 +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.16.0] - 2023-05-01
8
- ### Added
9
- - Add interface for automatically adding honeybadger tags `ExceptionHandling.honeybadger_auto_tagger=`
10
-
11
- ## [2.15.0] - 2023-03-07
12
- ### Added
13
- - Added support for ActionMailer 7.x
14
- - Added support for ActionPack 7.x
15
- - Added support for ActiveSupport 7.x
16
-
17
- ## [2.14.0] - 2023-02-22
18
- ### Added
19
- - Added support for plumbing tags through to honeybadger via the `honeybadger_tags` log context parameter
20
-
21
- ## [2.13.0] - 2022-09-15
22
- ### Added
23
- - Added an option for removing the 'exception_handling.' prefix from metric names in ExceptionHandling::default_metric_name
24
-
25
- ## [2.12.0] - 2022-08-04
26
- ### Added
27
- - Support for passing additional Honeybadger configuration parameters
28
-
29
- ## [2.11.3] - 2022-04-07
30
- ### Fixed
31
- - Fixed bug in ruby 2.7+ where `digest` was not required by default
32
-
33
- ## [2.11.2] - 2022-04-04
34
- ### Fixed
35
- - Fixed Ruby 3+ bug where arguments where not being passed using ** operator when writing to the logger
36
-
37
- ## [2.11.1] - 2022-04-04
38
- ### Fixed
39
- - Fixed bug in ruby 3+ where `contextual_logger` was missing ruby 3+ support
40
-
41
- ## [2.11.0] - 2022-03-29
42
- ### Added
43
- - Added support for rails 2.7 and 3+
44
-
45
- ### Removed
46
- - Removed support for Rails 4
47
-
48
- ## [2.10.0] - 2022-03-09
49
- ### Removed
50
- - Remove custom object inspection
51
- This removed Honeybadger-specific callbacks (`lib/exception_handling/honeybadger_callbacks.rb`)
52
-
53
- ### Deprecated
54
- - Deprecated use of Honeybadger fork
55
-
56
- ## [2.9.0] - 2020-03-02
57
- ### Added
58
- - Automatically registers with the `escalate` gem's `on_escalate` callback.
59
-
60
- ## [2.8.1] - 2020-12-01
61
- ### Added
62
- - If the `log_context` key `honeybadger_grouping:` is set, pass that value to the `controller:` keyword argument of `HoneyBadger.notify`.
63
-
64
- ## [2.8.0] - 2020-10-19
65
- ### Deprecated
66
- - Deprecated Email Escalation Methods: `escalate_to_production_support`, `escalate_error`, `escalate_warning`, `ensure_escalation`
67
-
68
- ## [2.7.0] - 2020-10-14
69
- ### Added
70
- - Added `LoggingMethods` as a replacement for `Methods` without setting controller or checking for long controller action.
71
- ### Deprecated
72
- - Deprecated `Methods` in favor of `LoggingMethods`.
73
-
74
- ## [2.6.1] - 2020-10-14
75
- ### Fixed
76
- - Fixed honeybadger_context_data to always merge `current_context_for_thread`, even if `log_context:` is passed as `nil`.
77
-
78
- ## [2.6.0] - 2020-08-26
79
- ### Changed
80
- - Calling `log_warning` will now log with Severity::WARNING rather than FATAL.
81
- - Reordered the logging to put the exception class next to the message.
82
-
83
- ## [2.5.0] - 2020-08-19
84
- ### Added
85
- - The `**log_context` passed to `log_error`/`log_warning`/`log_info` is now
86
- passed into `Honeybadger.notify()`, in `context: { log_context: ... }`.
87
-
88
- ### Fixed
89
- - Silenced test warning noise by no longer running ruby -w.
90
- - Renamed a constant to ALLOWLIST.
91
-
92
- ## [2.4.4] - 2020-08-10
93
- ### Fixed
94
- - `ExceptionHandling.logger = nil` no longer displays an "implicit extend" deprecation warning.
95
-
96
- ## [2.4.3] - 2020-05-14
97
- ### Deprecated
98
- - In `ExceptionHandling.logger=`, implicit `logger.extend ContextualLogger::LoggerMixin` is now deprecated.
99
- This will be removed in version 3.0 and an `ArgumentError` will be raised if the logger
100
- doesn't have that mixin. Instead of this implicit behavior, you should explicitly either `extend`
101
- your logger instance or `include` that mixin into your `Logger` class.
102
-
103
- ## [2.4.2] - 2020-05-11
104
- ### Added
105
- - Added support for rails 5 and 6.
106
- - Added appraisal tests for all supported rails version: 4/5/6
107
-
108
- ### Changed
109
- - Updated various test to be compatible with rails version 4/5/6
110
- - Updated the CI pipeline to test against all three supported versions of rails
111
-
112
- ## [2.4.1] - 2020-04-29
113
- ### Changed
114
- - No longer depends on hobo_support. Uses invoca-utils 0.3 instead.
115
-
116
- [2.16.0]: https://github.com/Invoca/exception_handling/compare/v2.15.0...v2.16.0
117
- [2.15.0]: https://github.com/Invoca/exception_handling/compare/v2.14.0...v2.15.0
118
- [2.14.0]: https://github.com/Invoca/exception_handling/compare/v2.13.0...v2.14.0
119
- [2.13.0]: https://github.com/Invoca/exception_handling/compare/v2.12.0...v2.13.0
120
- [2.12.0]: https://github.com/Invoca/exception_handling/compare/v2.11.3...v2.12.0
121
- [2.11.3]: https://github.com/Invoca/exception_handling/compare/v2.11.2...v2.11.3
122
- [2.11.2]: https://github.com/Invoca/exception_handling/compare/v2.11.1...v2.11.2
123
- [2.11.1]: https://github.com/Invoca/exception_handling/compare/v2.11.0...v2.11.1
124
- [2.11.0]: https://github.com/Invoca/exception_handling/compare/v2.10.0...v2.11.0
125
- [2.10.0]: https://github.com/Invoca/exception_handling/compare/v2.9.0...v2.10.0
126
- [2.9.0]: https://github.com/Invoca/exception_handling/compare/v2.8.1...v2.9.0
127
- [2.8.1]: https://github.com/Invoca/exception_handling/compare/v2.8.0...v2.8.1
128
- [2.8.0]: https://github.com/Invoca/exception_handling/compare/v2.7.0...v2.8.0
129
- [2.7.0]: https://github.com/Invoca/exception_handling/compare/v2.6.1...v2.7.0
130
- [2.6.1]: https://github.com/Invoca/exception_handling/compare/v2.6.0...v2.6.1
131
- [2.6.0]: https://github.com/Invoca/exception_handling/compare/v2.5.0...v2.6.0
132
- [2.5.0]: https://github.com/Invoca/exception_handling/compare/v2.4.4...v2.5.0
133
- [2.4.4]: https://github.com/Invoca/exception_handling/compare/v2.4.3...v2.4.4
134
- [2.4.3]: https://github.com/Invoca/exception_handling/compare/v2.4.2...v2.4.3
135
- [2.4.2]: https://github.com/Invoca/exception_handling/compare/v2.4.1...v2.4.2
136
- [2.4.1]: https://github.com/Invoca/exception_handling/compare/v2.4.0...v2.4.1
@@ -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: "../"
@@ -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: "../"
@@ -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