pry-rescue 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -84,7 +84,7 @@ class << Pry
84
84
 
85
85
  # Ensure that Interception is active while running this block
86
86
  #
87
- # @param [Proc] &block the block
87
+ # @param [Proc] block the block
88
88
  def with_rescuing(&block)
89
89
  if @rescuing
90
90
  block.call
@@ -14,7 +14,7 @@ class MiniTest::Unit::TestCase
14
14
  end
15
15
  end
16
16
 
17
- class << MiniTest::Unit.runner
17
+ class << MiniTest::Unit.runner; self; end.class_eval do
18
18
  alias_method :puke_without_rescue, :puke
19
19
 
20
20
  def puke(suite, test, e)
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 [Array<Exception, Array<Binding>>] raised The exceptions raised
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.0'
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.0
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-03-21 00:00:00.000000000 Z
14
+ date: 2013-05-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: pry