enhanced_errors 3.0.0 → 3.0.1
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/enhanced_errors.gemspec +1 -1
- data/lib/enhanced_errors.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05cf85baedd581bc8b05fcd80c2ca7f8691720c2b4353b0e25f9623cfc16db7d
|
4
|
+
data.tar.gz: 7ab8d816c9187117c38c63926dd51e82384b2d21153b619769c98f7be634a30c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36e2c3cf2ad33e9d582373375e2539d7908735d87701baa5e45d0f77fef689221c62ee6c775640887eeb1ea3de2ff587f71949b057a23fe227a195c45b4cc674
|
7
|
+
data.tar.gz: 785cf4a2767001d4efb7bb28f2ce5dc94055fd42f14322a210ac9fe5d231dcd24dc64db23aaa17d969a94e9732b8d4e7ae556a3710290cee93c957738a022a25
|
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.1"
|
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
@@ -286,8 +286,8 @@ class EnhancedErrors
|
|
286
286
|
end
|
287
287
|
|
288
288
|
def start_minitest_binding_capture
|
289
|
-
EnhancedExceptionContext.clear_all
|
290
289
|
@enabled = true if @enabled.nil?
|
290
|
+
return unless @enabled
|
291
291
|
mutex.synchronize do
|
292
292
|
@minitest_trace = TracePoint.new(:return) do |tp|
|
293
293
|
next unless tp.method_id.to_s.start_with?('test_') && is_a_minitest?(tp.defined_class)
|
@@ -321,6 +321,8 @@ class EnhancedErrors
|
|
321
321
|
|
322
322
|
def start_rspec_binding_capture
|
323
323
|
@enabled = true if @enabled.nil?
|
324
|
+
return unless @enabled
|
325
|
+
|
324
326
|
mutex.synchronize do
|
325
327
|
@rspec_example_binding = nil
|
326
328
|
@capture_next_binding = false
|