enhanced_errors 3.0.6 → 3.0.7
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 +4 -4
- data/doc/Enhanced/Colors.html +2 -2
- data/doc/Enhanced/Context.html +2 -2
- data/doc/Enhanced/ExceptionBindingInfos.html +2 -2
- data/doc/Enhanced/ExceptionContext.html +2 -2
- data/doc/Enhanced.html +3 -3
- data/doc/EnhancedErrors.html +6 -6
- data/doc/Exception.html +2 -2
- data/doc/Minitest.html +2 -2
- data/doc/_index.html +2 -2
- data/doc/file.README.html +4 -4
- data/doc/index.html +4 -4
- data/doc/top-level-namespace.html +8 -4
- data/enhanced_errors.gemspec +1 -1
- data/lib/enhanced_errors.rb +9 -11
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 714303e7c9843a654ae44db08c3540bce67733db5f69bc241704cd79a95093f4
|
|
4
|
+
data.tar.gz: 3f3785c200717e230da689501f534317d0dae6fe8caa1563a887eef95b80ba01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ebf2fb3d3cb9a805da3c3d2278eae26b7319ff325be32f92cf0cfb530eb4093f160aacf9c5e19502c3b48a4a329cdeedd6f8dbb149e8999ec744026b5ddbd2d5
|
|
7
|
+
data.tar.gz: 155356eee4767b526eefb0b28168b644f2becb40c1d008d9744e593ad45e5fc3ac162f508a01b7bc9a805e56b465ff95cdf0a4afaf06d0514eb0f326ef1ceb76
|
data/doc/Enhanced/Colors.html
CHANGED
|
@@ -381,9 +381,9 @@
|
|
|
381
381
|
</div>
|
|
382
382
|
|
|
383
383
|
<div id="footer">
|
|
384
|
-
Generated on Wed Dec 25
|
|
384
|
+
Generated on Wed Dec 25 21:30:24 2024 by
|
|
385
385
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
386
|
-
0.9.37 (ruby-3.
|
|
386
|
+
0.9.37 (ruby-3.3.6).
|
|
387
387
|
</div>
|
|
388
388
|
|
|
389
389
|
</div>
|
data/doc/Enhanced/Context.html
CHANGED
|
@@ -273,9 +273,9 @@
|
|
|
273
273
|
</div>
|
|
274
274
|
|
|
275
275
|
<div id="footer">
|
|
276
|
-
Generated on Wed Dec 25
|
|
276
|
+
Generated on Wed Dec 25 21:30:25 2024 by
|
|
277
277
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
278
|
-
0.9.37 (ruby-3.
|
|
278
|
+
0.9.37 (ruby-3.3.6).
|
|
279
279
|
</div>
|
|
280
280
|
|
|
281
281
|
</div>
|
|
@@ -239,9 +239,9 @@
|
|
|
239
239
|
</div>
|
|
240
240
|
|
|
241
241
|
<div id="footer">
|
|
242
|
-
Generated on Wed Dec 25
|
|
242
|
+
Generated on Wed Dec 25 21:30:24 2024 by
|
|
243
243
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
244
|
-
0.9.37 (ruby-3.
|
|
244
|
+
0.9.37 (ruby-3.3.6).
|
|
245
245
|
</div>
|
|
246
246
|
|
|
247
247
|
</div>
|
|
@@ -387,9 +387,9 @@
|
|
|
387
387
|
</div>
|
|
388
388
|
|
|
389
389
|
<div id="footer">
|
|
390
|
-
Generated on Wed Dec 25
|
|
390
|
+
Generated on Wed Dec 25 21:30:24 2024 by
|
|
391
391
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
392
|
-
0.9.37 (ruby-3.
|
|
392
|
+
0.9.37 (ruby-3.3.6).
|
|
393
393
|
</div>
|
|
394
394
|
|
|
395
395
|
</div>
|
data/doc/Enhanced.html
CHANGED
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
<dl>
|
|
85
85
|
<dt>Defined in:</dt>
|
|
86
86
|
<dd>lib/enhanced/colors.rb<span class="defines">,<br />
|
|
87
|
-
lib/enhanced_errors.rb,<br /> lib/
|
|
87
|
+
lib/enhanced_errors.rb,<br /> lib/enhanced/context.rb,<br /> lib/enhanced/exception.rb,<br /> lib/enhanced/exception_context.rb</span>
|
|
88
88
|
</dd>
|
|
89
89
|
</dl>
|
|
90
90
|
|
|
@@ -114,9 +114,9 @@
|
|
|
114
114
|
</div>
|
|
115
115
|
|
|
116
116
|
<div id="footer">
|
|
117
|
-
Generated on Wed Dec 25
|
|
117
|
+
Generated on Wed Dec 25 21:30:24 2024 by
|
|
118
118
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
119
|
-
0.9.37 (ruby-3.
|
|
119
|
+
0.9.37 (ruby-3.3.6).
|
|
120
120
|
</div>
|
|
121
121
|
|
|
122
122
|
</div>
|
data/doc/EnhancedErrors.html
CHANGED
|
@@ -1966,7 +1966,7 @@
|
|
|
1966
1966
|
|
|
1967
1967
|
<span class='id identifier rubyid_events'>events</span> <span class='op'>=</span> <span class='ivar'>@capture_events</span> <span class='op'>?</span> <span class='ivar'>@capture_events</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span> <span class='op'>:</span> <span class='id identifier rubyid_default_capture_events'>default_capture_events</span>
|
|
1968
1968
|
<span class='ivar'>@exception_trace</span> <span class='op'>=</span> <span class='const'>TracePoint</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_events'>events</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_tp'>tp</span><span class='op'>|</span>
|
|
1969
|
-
<span class='kw'>
|
|
1969
|
+
<span class='kw'>next</span> <span class='kw'>unless</span> <span class='id identifier rubyid_exception_is_handleable?'>exception_is_handleable?</span><span class='lparen'>(</span><span class='id identifier rubyid_tp'>tp</span><span class='period'>.</span><span class='id identifier rubyid_raised_exception'>raised_exception</span><span class='rparen'>)</span>
|
|
1970
1970
|
<span class='id identifier rubyid_handle_tracepoint_event'>handle_tracepoint_event</span><span class='lparen'>(</span><span class='id identifier rubyid_tp'>tp</span><span class='rparen'>)</span>
|
|
1971
1971
|
<span class='kw'>end</span>
|
|
1972
1972
|
|
|
@@ -2837,14 +2837,14 @@
|
|
|
2837
2837
|
<span class='ivar'>@capture_next_binding</span> <span class='op'>=</span> <span class='kw'>false</span>
|
|
2838
2838
|
<span class='ivar'>@rspec_tracepoint</span><span class='op'>&.</span><span class='id identifier rubyid_disable'>disable</span>
|
|
2839
2839
|
<span class='ivar'>@rspec_tracepoint</span> <span class='op'>=</span> <span class='const'>TracePoint</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:raise</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_tp'>tp</span><span class='op'>|</span>
|
|
2840
|
-
<span class='kw'>
|
|
2841
|
-
<span class='id identifier rubyid_class_name'>class_name</span> <span class='op'>=</span> <span class='id identifier rubyid_tp'>tp</span><span class='period'>.</span><span class='id identifier rubyid_raised_exception'>raised_exception</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span>
|
|
2842
|
-
<span class='kw'>case</span> <span class='id identifier rubyid_class_name'>class_name</span>
|
|
2840
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_tp'>tp</span><span class='period'>.</span><span class='id identifier rubyid_raised_exception'>raised_exception</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span>
|
|
2843
2841
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>RSpec::Expectations::ExpectationNotMetError</span><span class='tstring_end'>'</span></span>
|
|
2844
2842
|
<span class='id identifier rubyid_start_rspec_binding_trap'>start_rspec_binding_trap</span>
|
|
2845
2843
|
<span class='kw'>else</span>
|
|
2846
2844
|
<span class='id identifier rubyid_handle_tracepoint_event'>handle_tracepoint_event</span><span class='lparen'>(</span><span class='id identifier rubyid_tp'>tp</span><span class='rparen'>)</span>
|
|
2847
2845
|
<span class='kw'>end</span>
|
|
2846
|
+
<span class='kw'>rescue</span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span>
|
|
2847
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Error in RSpec binding capture </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_e'>e</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_backtrace'>backtrace</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
2848
2848
|
<span class='kw'>end</span>
|
|
2849
2849
|
<span class='kw'>end</span>
|
|
2850
2850
|
<span class='ivar'>@rspec_tracepoint</span><span class='op'>&.</span><span class='id identifier rubyid_enable'>enable</span>
|
|
@@ -3036,9 +3036,9 @@
|
|
|
3036
3036
|
</div>
|
|
3037
3037
|
|
|
3038
3038
|
<div id="footer">
|
|
3039
|
-
Generated on Wed Dec 25
|
|
3039
|
+
Generated on Wed Dec 25 21:30:25 2024 by
|
|
3040
3040
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
3041
|
-
0.9.37 (ruby-3.
|
|
3041
|
+
0.9.37 (ruby-3.3.6).
|
|
3042
3042
|
</div>
|
|
3043
3043
|
|
|
3044
3044
|
</div>
|
data/doc/Exception.html
CHANGED
|
@@ -111,9 +111,9 @@
|
|
|
111
111
|
</div>
|
|
112
112
|
|
|
113
113
|
<div id="footer">
|
|
114
|
-
Generated on Wed Dec 25
|
|
114
|
+
Generated on Wed Dec 25 21:30:25 2024 by
|
|
115
115
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
116
|
-
0.9.37 (ruby-3.
|
|
116
|
+
0.9.37 (ruby-3.3.6).
|
|
117
117
|
</div>
|
|
118
118
|
|
|
119
119
|
</div>
|
data/doc/Minitest.html
CHANGED
|
@@ -230,9 +230,9 @@
|
|
|
230
230
|
</div>
|
|
231
231
|
|
|
232
232
|
<div id="footer">
|
|
233
|
-
Generated on Wed Dec 25
|
|
233
|
+
Generated on Wed Dec 25 21:30:24 2024 by
|
|
234
234
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
235
|
-
0.9.37 (ruby-3.
|
|
235
|
+
0.9.37 (ruby-3.3.6).
|
|
236
236
|
</div>
|
|
237
237
|
|
|
238
238
|
</div>
|
data/doc/_index.html
CHANGED
|
@@ -156,9 +156,9 @@
|
|
|
156
156
|
</div>
|
|
157
157
|
|
|
158
158
|
<div id="footer">
|
|
159
|
-
Generated on Wed Dec 25
|
|
159
|
+
Generated on Wed Dec 25 21:30:24 2024 by
|
|
160
160
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
161
|
-
0.9.37 (ruby-3.
|
|
161
|
+
0.9.37 (ruby-3.3.6).
|
|
162
162
|
</div>
|
|
163
163
|
|
|
164
164
|
</div>
|
data/doc/file.README.html
CHANGED
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
</span>
|
|
105
105
|
<span class='const'>RSpec</span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
|
|
106
106
|
|
|
107
|
-
<span class='comment'>#
|
|
108
|
-
</span> <span class='comment'># Consider driving the config with an environment variable
|
|
107
|
+
<span class='comment'># Add this config to RSpec to enhance your output
|
|
108
|
+
</span> <span class='comment'># Consider driving the config with an environment variable to make it configurable per-user or run:
|
|
109
109
|
</span> <span class='comment'># if ENV['enhanced_errors'] == 'true'
|
|
110
110
|
</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_before'>before</span><span class='lparen'>(</span><span class='symbol'>:example</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid__example'>_example</span><span class='op'>|</span>
|
|
111
111
|
<span class='const'><span class='object_link'><a href="EnhancedErrors.html" title="EnhancedErrors (class)">EnhancedErrors</a></span></span><span class='period'>.</span><span class='id identifier rubyid_start_rspec_binding_capture'><span class='object_link'><a href="EnhancedErrors.html#start_rspec_binding_capture-class_method" title="EnhancedErrors.start_rspec_binding_capture (method)">start_rspec_binding_capture</a></span></span>
|
|
@@ -481,9 +481,9 @@
|
|
|
481
481
|
</div></div>
|
|
482
482
|
|
|
483
483
|
<div id="footer">
|
|
484
|
-
Generated on Wed Dec 25
|
|
484
|
+
Generated on Wed Dec 25 21:30:24 2024 by
|
|
485
485
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
486
|
-
0.9.37 (ruby-3.
|
|
486
|
+
0.9.37 (ruby-3.3.6).
|
|
487
487
|
</div>
|
|
488
488
|
|
|
489
489
|
</div>
|
data/doc/index.html
CHANGED
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
</span>
|
|
105
105
|
<span class='const'>RSpec</span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
|
|
106
106
|
|
|
107
|
-
<span class='comment'>#
|
|
108
|
-
</span> <span class='comment'># Consider driving the config with an environment variable
|
|
107
|
+
<span class='comment'># Add this config to RSpec to enhance your output
|
|
108
|
+
</span> <span class='comment'># Consider driving the config with an environment variable to make it configurable per-user or run:
|
|
109
109
|
</span> <span class='comment'># if ENV['enhanced_errors'] == 'true'
|
|
110
110
|
</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_before'>before</span><span class='lparen'>(</span><span class='symbol'>:example</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid__example'>_example</span><span class='op'>|</span>
|
|
111
111
|
<span class='const'><span class='object_link'><a href="EnhancedErrors.html" title="EnhancedErrors (class)">EnhancedErrors</a></span></span><span class='period'>.</span><span class='id identifier rubyid_start_rspec_binding_capture'><span class='object_link'><a href="EnhancedErrors.html#start_rspec_binding_capture-class_method" title="EnhancedErrors.start_rspec_binding_capture (method)">start_rspec_binding_capture</a></span></span>
|
|
@@ -481,9 +481,9 @@
|
|
|
481
481
|
</div></div>
|
|
482
482
|
|
|
483
483
|
<div id="footer">
|
|
484
|
-
Generated on Wed Dec 25
|
|
484
|
+
Generated on Wed Dec 25 21:30:24 2024 by
|
|
485
485
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
486
|
-
0.9.37 (ruby-3.
|
|
486
|
+
0.9.37 (ruby-3.3.6).
|
|
487
487
|
</div>
|
|
488
488
|
|
|
489
489
|
</div>
|
|
@@ -113,8 +113,12 @@
|
|
|
113
113
|
|
|
114
114
|
</div>
|
|
115
115
|
</dt>
|
|
116
|
-
<dd><pre class="code"><span class='qwords_beg'>%w[</span><span class='tstring_content'>
|
|
117
|
-
|
|
116
|
+
<dd><pre class="code"><span class='qwords_beg'>%w[</span><span class='tstring_content'>JSON::ParserError</span><span class='words_sep'> </span><span class='tstring_content'>Zlib::Error</span><span class='words_sep'> </span><span class='tstring_content'>OpenSSL::SSL::SSLError</span><span class='words_sep'> </span><span class='tstring_content'>Psych::BadAlias</span><span class='tstring_end'>]</span></span></pre></dd>
|
|
117
|
+
|
|
118
|
+
<dt id="IGNORED_RSPEC_EXCEPTIONS-constant" class="">IGNORED_RSPEC_EXCEPTIONS =
|
|
119
|
+
|
|
120
|
+
</dt>
|
|
121
|
+
<dd><pre class="code"><span class='qwords_beg'>%w[</span><span class='tstring_content'>RSpec::Expectations::ExpectationNotMetError</span><span class='words_sep'> </span><span class='tstring_content'>RSpec::Matchers::BuiltIn::RaiseError</span><span class='tstring_end'>]</span></span></pre></dd>
|
|
118
122
|
|
|
119
123
|
</dl>
|
|
120
124
|
|
|
@@ -130,9 +134,9 @@
|
|
|
130
134
|
</div>
|
|
131
135
|
|
|
132
136
|
<div id="footer">
|
|
133
|
-
Generated on Wed Dec 25
|
|
137
|
+
Generated on Wed Dec 25 21:30:24 2024 by
|
|
134
138
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
135
|
-
0.9.37 (ruby-3.
|
|
139
|
+
0.9.37 (ruby-3.3.6).
|
|
136
140
|
</div>
|
|
137
141
|
|
|
138
142
|
</div>
|
data/enhanced_errors.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = "enhanced_errors"
|
|
3
|
-
spec.version = "3.0.
|
|
3
|
+
spec.version = "3.0.7"
|
|
4
4
|
spec.authors = ["Eric Beland"]
|
|
5
5
|
|
|
6
6
|
spec.summary = "Automatically enhance your errors with messages containing variable values from the moment they were raised."
|
data/lib/enhanced_errors.rb
CHANGED
|
@@ -8,8 +8,8 @@ module Enhanced; end
|
|
|
8
8
|
|
|
9
9
|
# Exceptions we could handle but overlook for other reasons. These class constants are not always loaded
|
|
10
10
|
# and generally are only be available when `required`, so we detect them by strings.
|
|
11
|
-
IGNORED_EXCEPTIONS = %w[
|
|
12
|
-
|
|
11
|
+
IGNORED_EXCEPTIONS = %w[JSON::ParserError Zlib::Error OpenSSL::SSL::SSLError Psych::BadAlias]
|
|
12
|
+
IGNORED_RSPEC_EXCEPTIONS = %w[RSpec::Expectations::ExpectationNotMetError RSpec::Matchers::BuiltIn::RaiseError]
|
|
13
13
|
|
|
14
14
|
class EnhancedErrors
|
|
15
15
|
extend ::Enhanced
|
|
@@ -171,7 +171,6 @@ class EnhancedErrors
|
|
|
171
171
|
end
|
|
172
172
|
|
|
173
173
|
def override_exception_message(exception, binding_or_bindings)
|
|
174
|
-
return unless exception_is_handleable?(exception)
|
|
175
174
|
variable_str = EnhancedErrors.format(binding_or_bindings)
|
|
176
175
|
message_str = exception.message
|
|
177
176
|
exception.define_singleton_method(:unaltered_message) { message_str }
|
|
@@ -219,7 +218,7 @@ class EnhancedErrors
|
|
|
219
218
|
|
|
220
219
|
events = @capture_events ? @capture_events.to_a : default_capture_events
|
|
221
220
|
@exception_trace = TracePoint.new(*events) do |tp|
|
|
222
|
-
|
|
221
|
+
next unless exception_is_handleable?(tp.raised_exception)
|
|
223
222
|
handle_tracepoint_event(tp)
|
|
224
223
|
end
|
|
225
224
|
|
|
@@ -277,7 +276,6 @@ class EnhancedErrors
|
|
|
277
276
|
@capture_next_binding = false
|
|
278
277
|
@rspec_tracepoint&.disable
|
|
279
278
|
@rspec_tracepoint = TracePoint.new(:raise) do |tp|
|
|
280
|
-
return unless exception_is_handleable?(tp.raised_exception)
|
|
281
279
|
case tp.raised_exception.class.name
|
|
282
280
|
when 'RSpec::Expectations::ExpectationNotMetError'
|
|
283
281
|
start_rspec_binding_trap
|
|
@@ -285,7 +283,7 @@ class EnhancedErrors
|
|
|
285
283
|
handle_tracepoint_event(tp)
|
|
286
284
|
end
|
|
287
285
|
rescue => e
|
|
288
|
-
puts "Error in RSpec
|
|
286
|
+
puts "Error in RSpec binding capture #{e} #{e.backtrace}"
|
|
289
287
|
end
|
|
290
288
|
end
|
|
291
289
|
@rspec_tracepoint&.enable
|
|
@@ -823,13 +821,17 @@ class EnhancedErrors
|
|
|
823
821
|
# By default, we have filtering for safety, but past that, we capture everything by default
|
|
824
822
|
# at the moment.
|
|
825
823
|
def default_eligible_for_capture(exception)
|
|
826
|
-
|
|
824
|
+
ignored = ignored_exception?(exception) || IGNORED_RSPEC_EXCEPTIONS.include?(exception.class.name)
|
|
825
|
+
rspec = exception.class.name.start_with?('RSpec::Matchers')
|
|
826
|
+
!(ignored || rspec)
|
|
827
827
|
end
|
|
828
828
|
|
|
829
|
+
# overall--do we process this, including whether we ignore it or not for more general reasons
|
|
829
830
|
def exception_is_handleable?(exception)
|
|
830
831
|
exception && processable_exception?(exception) && !ignored_exception?(exception)
|
|
831
832
|
end
|
|
832
833
|
|
|
834
|
+
# some exceptions, we just don't want to touch
|
|
833
835
|
def processable_exception?(exception)
|
|
834
836
|
case exception
|
|
835
837
|
when SystemExit, SignalException, SystemStackError, NoMemoryError
|
|
@@ -859,7 +861,3 @@ class EnhancedErrors
|
|
|
859
861
|
|
|
860
862
|
end
|
|
861
863
|
end
|
|
862
|
-
|
|
863
|
-
module Enhanced
|
|
864
|
-
|
|
865
|
-
end
|
metadata
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: enhanced_errors
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Beland
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: bin
|
|
9
10
|
cert_chain: []
|
|
10
11
|
date: 2024-12-26 00:00:00.000000000 Z
|
|
@@ -68,6 +69,7 @@ dependencies:
|
|
|
68
69
|
description: 'EnhancedErrors will automatically enhance your errors with messages
|
|
69
70
|
containing variable values from the moment they were raised, using no extra dependencies,
|
|
70
71
|
and only Ruby''s built-in TracePoint. '
|
|
72
|
+
email:
|
|
71
73
|
executables: []
|
|
72
74
|
extensions: []
|
|
73
75
|
extra_rdoc_files: []
|
|
@@ -123,6 +125,7 @@ licenses: []
|
|
|
123
125
|
metadata:
|
|
124
126
|
homepage_uri: https://github.com/ericbeland/enhanced_errors
|
|
125
127
|
source_code_uri: https://github.com/ericbeland/enhanced_errors
|
|
128
|
+
post_install_message:
|
|
126
129
|
rdoc_options: []
|
|
127
130
|
require_paths:
|
|
128
131
|
- lib
|
|
@@ -137,7 +140,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
137
140
|
- !ruby/object:Gem::Version
|
|
138
141
|
version: '0'
|
|
139
142
|
requirements: []
|
|
140
|
-
rubygems_version: 3.
|
|
143
|
+
rubygems_version: 3.3.26
|
|
144
|
+
signing_key:
|
|
141
145
|
specification_version: 4
|
|
142
146
|
summary: Automatically enhance your errors with messages containing variable values
|
|
143
147
|
from the moment they were raised.
|