pry-rescue 0.11.pre.1 → 0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pry-rescue.rb +1 -1
- data/lib/pry-rescue/core_ext.rb +12 -1
- data/pry-rescue.gemspec +1 -1
- metadata +5 -5
data/lib/pry-rescue.rb
CHANGED
data/lib/pry-rescue/core_ext.rb
CHANGED
@@ -44,7 +44,18 @@ class << Pry
|
|
44
44
|
@raised = []
|
45
45
|
end
|
46
46
|
|
47
|
-
|
47
|
+
# Allow Pry::rescued(e) to work at any point in your program.
|
48
|
+
#
|
49
|
+
# @example
|
50
|
+
# Pry::enable_rescuing!
|
51
|
+
#
|
52
|
+
# begin
|
53
|
+
# raise "foo"
|
54
|
+
# rescue => e
|
55
|
+
# Pry::rescued(e)
|
56
|
+
# end
|
57
|
+
#
|
58
|
+
def enable_rescuing!
|
48
59
|
@raised = []
|
49
60
|
@rescuing = true
|
50
61
|
Interception.listen do |exception, binding|
|
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 = '0.11
|
3
|
+
s.version = '0.11'
|
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,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-rescue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11
|
5
|
-
prerelease:
|
4
|
+
version: '0.11'
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Conrad Irwin
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-10-
|
14
|
+
date: 2012-10-16 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: pry
|
@@ -155,9 +155,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
none: false
|
157
157
|
requirements:
|
158
|
-
- - ! '
|
158
|
+
- - ! '>='
|
159
159
|
- !ruby/object:Gem::Version
|
160
|
-
version:
|
160
|
+
version: '0'
|
161
161
|
requirements: []
|
162
162
|
rubyforge_project:
|
163
163
|
rubygems_version: 1.8.24
|