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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8efc7b9715b813d79eb37a6d20b5977094ee4190a505d57820e0b82b8284878
4
- data.tar.gz: 9914dbe5fc5f7d354b8bfdd967197dc062a7fdba4b6cf5e77a868f0f532ee5bb
3
+ metadata.gz: 05cf85baedd581bc8b05fcd80c2ca7f8691720c2b4353b0e25f9623cfc16db7d
4
+ data.tar.gz: 7ab8d816c9187117c38c63926dd51e82384b2d21153b619769c98f7be634a30c
5
5
  SHA512:
6
- metadata.gz: 5848a612d8ab1c209aafc70943115b399286d2ba894465ce05b17002485504cf0188cdc59171b5c3e7fa547b2de88cf6fcc459fcf76bb43462886d9cc16a0f3c
7
- data.tar.gz: 4f0dadf6d0ff3640b7a7483926fd4ab62b4981291f2fc480722ef693ff2f784c804d9c313e507fbb64eb9d1b4ff0de9bb5e416b07cb45f476b83c13f7c1a045d
6
+ metadata.gz: 36e2c3cf2ad33e9d582373375e2539d7908735d87701baa5e45d0f77fef689221c62ee6c775640887eeb1ea3de2ff587f71949b057a23fe227a195c45b4cc674
7
+ data.tar.gz: 785cf4a2767001d4efb7bb28f2ce5dc94055fd42f14322a210ac9fe5d231dcd24dc64db23aaa17d969a94e9732b8d4e7ae556a3710290cee93c957738a022a25
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "enhanced_errors"
3
- spec.version = "3.0.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."
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enhanced_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Beland