rspec-debugging 0.0.5 → 0.0.6

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: 800f98a191cd2864da71e9dedd3c5297436eb6cea8fe06007d61c31c6add84cf
4
- data.tar.gz: 13ca3c01b54c59709cdf02fb7d06725f6a7e6cffc923e7bc870179c7c28ee9d7
3
+ metadata.gz: cef0952745e075d2ddb60bf6827985ae51dcc935b14624f97bebb48bda5b29f1
4
+ data.tar.gz: 104a0eae0841e4c02dc15004254f020c87f7f79aaa4058183c88a1d3bbe2ef54
5
5
  SHA512:
6
- metadata.gz: 500e405c9c2c1699fc16cba9ef744c63124cba6dd911209a119ac12b00883579012713e79a7a595ec942d6f6aac64c3a3d38cbd75722d675040b6ffb7843cb81
7
- data.tar.gz: ee13770b391f1df53770b686991d6df2af08adaa9502f8b5dd1b57e8bd0c8b8a31982d8e8bcf751785f338bced5f76c6690051aebe9474964f7293fa0eff5b59
6
+ metadata.gz: f4d818d570b7d1c2d1ddfaf919112b2291a996b6dc2e064b18b342e8dc997c8dcf77603bcb961c0a2c45b21a4c49949a9f0bb6afb14ce6e7495113b0905a6fbd
7
+ data.tar.gz: affde56467e8d7ae4c842a9cd83cff7bd8833f4c09a7acdfb276b6e8e963ec72e6dc3322c431349e1d80e4b3e1d65041fed38ad7d635e46f19ae02f210cd9a11
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 0.0.6 (2026-11-03)
2
+ - fix: an example that closes `$stdin` and then fails skips the postmortem debugger instead of crashing its thread with `IOError: closed stream`
3
+
1
4
  ### 0.0.5 (2026-11-03)
2
5
  - feature: failures in `before` / `after` hooks and `let!` now open the postmortem debugger
3
6
  - feature: the postmortem banner lists the names of initialized `let` variables
@@ -112,7 +112,8 @@ module RSpec
112
112
  return super unless example && args.first.equal?(example)
113
113
 
114
114
  error, frames = DebugIt.capture_frames { return super }
115
- raise error unless DebugIt.failure?(error)
115
+ # the example may have closed or swapped stdin since run checked
116
+ raise error unless DebugIt.failure?(error) && DebugIt.interactive?
116
117
 
117
118
  $stderr.puts <<~MSG
118
119
 
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module Debugging
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-debugging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Pepper