pry-rescue 0.11.pre.1 → 0.11

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.
@@ -12,7 +12,7 @@ if ENV['PRY_RESCUE_RAILS']
12
12
  end
13
13
  case ENV['PRY_PEEK']
14
14
  when nil
15
- PryRescue.peek_on_signal('USR2')
15
+ PryRescue.peek_on_signal('USR2') unless Pry::Helpers::BaseHelpers.windows?
16
16
  when ''
17
17
  # explicitly disable USR2.
18
18
  else
@@ -44,7 +44,18 @@ class << Pry
44
44
  @raised = []
45
45
  end
46
46
 
47
- def rescue_everything!
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|
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'pry-rescue'
3
- s.version = '0.11.pre.1'
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.pre.1
5
- prerelease: 5
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-08 00:00:00.000000000 Z
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: 1.3.1
160
+ version: '0'
161
161
  requirements: []
162
162
  rubyforge_project:
163
163
  rubygems_version: 1.8.24