pry-rescue 1.5.2 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 785059388e26fc08a04afc6d370b89efdc4506f3882738444e2ab0b99c229f20
4
- data.tar.gz: 11ab228ba3b614eef01ba6687c97a36c76411245fdc6bcb03aaaaf9cd2a3c59c
3
+ metadata.gz: 9858e248a006df546dbc0e2e4a5b0055e9f0e2276bce651729af051d88741ec7
4
+ data.tar.gz: dbc440ce345d54877bd894a8dfe89c9d497e4f144ffcc5dadf702bb89887c7cc
5
5
  SHA512:
6
- metadata.gz: 4ebeff09115b1ad7937b09e42ced421309b24d9674f7edab5d4f9c6acb504778de1506732220f687f81ebccdb0b16b1c34e49bed0c294b980a6eb3701e6d9d1a
7
- data.tar.gz: 5c4ecf866a9d06f07447bab62cb51046e40cecbc8ad8cac796c7e40e573ce6c8ceda1a390e6d457a9eef146d9e2c8be79336025515c59188690d8567bc244f47
6
+ metadata.gz: cccaff14cd38dfe24cfa8a85d7121b90f526e214cb6accf474e1237429a372d871eb5189e696ea18b4eb34371f236ebfeee0559202d1301be11b0bf8d06ebdd9
7
+ data.tar.gz: 5236813e00b7a5198159d181c1b660c4aad9b4f8c1b7c50a9c69d39753d5641d8f8efe24176a51f709b91d1f28301baae577d930c5cfe393d93ebbc8f958db89
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v1.6.0 (9 January 2024)
2
+ * Fix ruby 3.2 compatibility
3
+
1
4
  ## v1.5.2 (24 June 2020)
2
5
  * RSpec: Fix Rescue opening after transactional tests are rolled back.
3
6
  (issue #99 - PR #118) (@joallard)
data/bin/rescue CHANGED
@@ -52,7 +52,7 @@ end
52
52
  if script = ARGV.shift
53
53
  $0 = File.expand_path(script)
54
54
 
55
- if File.exists? script
55
+ if File.exist? script
56
56
  require File.realpath(File.expand_path('../../lib/pry-rescue.rb', __FILE__))
57
57
  PryRescue.load $0, ensure_repl
58
58
  else
@@ -50,7 +50,13 @@ class PryRescue
50
50
  unless Capybara.respond_to?(:reset_sessions_after_rescue!)
51
51
  class << Capybara
52
52
  alias_method :reset_sessions_after_rescue!, :reset_sessions!
53
- def reset_sessions!; end
53
+ def reset_sessions!
54
+ return if Capybara.raise_server_errors
55
+
56
+ session_pool.reverse_each do |_mode, session|
57
+ session.server.reset_error!
58
+ end
59
+ end
54
60
  end
55
61
 
56
62
  after_filters << Capybara.method(:reset_sessions_after_rescue!)
data/pry-rescue.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'pry-rescue'
3
- s.version = '1.5.2'
3
+ s.version = '1.6.0'
4
4
  s.summary = 'Open a pry session on any unhandled exceptions'
5
5
  s.description = 'Allows you to wrap code in Pry::rescue{ } to open a pry session at any unhandled exceptions'
6
6
  s.homepage = 'https://github.com/ConradIrwin/pry-rescue'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-rescue
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Conrad Irwin
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-06-25 00:00:00.000000000 Z
13
+ date: 2024-01-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pry
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  - !ruby/object:Gem::Version
193
193
  version: '0'
194
194
  requirements: []
195
- rubygems_version: 3.1.2
195
+ rubygems_version: 3.0.3.1
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Open a pry session on any unhandled exceptions