pry-rescue 1.1.0 → 1.1.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.
- data/lib/pry-rescue/core_ext.rb +1 -1
- data/lib/pry-rescue/minitest.rb +1 -1
- data/lib/pry-rescue.rb +1 -3
- data/pry-rescue.gemspec +1 -1
- metadata +2 -2
data/lib/pry-rescue/core_ext.rb
CHANGED
data/lib/pry-rescue/minitest.rb
CHANGED
data/lib/pry-rescue.rb
CHANGED
@@ -40,7 +40,7 @@ class PryRescue
|
|
40
40
|
class << self
|
41
41
|
|
42
42
|
# Start a Pry session in the context of the exception.
|
43
|
-
# @param [
|
43
|
+
# @param [Exception] exception The exception raised
|
44
44
|
def enter_exception_context(exception)
|
45
45
|
@exception_context_depth ||= 0
|
46
46
|
@exception_context_depth += 1
|
@@ -84,7 +84,6 @@ class PryRescue
|
|
84
84
|
# TODO: we should figure out why it happens...
|
85
85
|
#
|
86
86
|
# @param [Exception] e The raised exception
|
87
|
-
# @param [Array<Binding>] bindings The call stack
|
88
87
|
def phantom_load_raise?(e)
|
89
88
|
bindings = e.instance_variable_get(:@rescue_bindings)
|
90
89
|
bindings.any? && bindings.first.eval("__FILE__") == __FILE__
|
@@ -178,7 +177,6 @@ class PryRescue
|
|
178
177
|
# properly set.
|
179
178
|
#
|
180
179
|
# @param [Exception] ex The exception we're currently looking at
|
181
|
-
# @param [Array<Exception, Array<Binding>>] raised The exceptions raised
|
182
180
|
def pry_hooks(ex)
|
183
181
|
hooks = Pry.config.hooks.dup
|
184
182
|
hooks.add_hook(:before_session, :save_captured_exception) do |_, _, _pry_|
|
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.1.
|
3
|
+
s.version = '1.1.1'
|
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.1.
|
4
|
+
version: 1.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-05-10 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: pry
|