pry-rescue 1.4.0 → 1.4.1

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
  SHA1:
3
- metadata.gz: 008a4a4f62d94f4b5cf467c311f520979131feae
4
- data.tar.gz: 79f4cd04eb646a813ce15b4eea2adbd72b00b81c
3
+ metadata.gz: 04027ae7cb39da3c8dd9b75ba3f9e66a354bad63
4
+ data.tar.gz: ea1a1b6249256fe3ddd37d602f17465e22a5badb
5
5
  SHA512:
6
- metadata.gz: c5a9cc31ce909e9e79bc5fe46700337cbaf236147f78e058ae74452290d2c27b5a9b09fda7a251d36f9a4d51decc10d88bacc14867d50ea94c7902696f6f5940
7
- data.tar.gz: 5f309de666004631feba445d965e9aed2b2d8e3bcd1e7663531c88dd3f1fcf00b57fa07c72ac98131d061f4c0a6492de33109f7058faa25803a32f09776e0850
6
+ metadata.gz: 5e716ea90f3d98a65a6fd10ea31784cd86d238fa0e6419813166fdcd94e0743bb7738b7174d1ca05ff4892ca078293a001e1e7cfdc18c685f8aecc80f0209391
7
+ data.tar.gz: 80b9ef7e49860c211ccbf35e2d4aea851b2aa747e2c3f0ac6cd610b284526f80b063fd78c42c4cd374c5f1b8afcc4f9bc161584c0ef8f1f1090a733cc15d0aab
@@ -10,9 +10,9 @@ class PryRescue
10
10
  begin
11
11
  before
12
12
 
13
- example.binding.eval('@exception = nil')
13
+ example.binding.eval('@exception = nil; @example && @example.instance_variable_set(:@exception, nil)')
14
14
  example.run
15
- if e = example.binding.eval('@exception')
15
+ if e = example.binding.eval('@exception || @example && @example.instance_variable_get(:@exception)')
16
16
  Pry::rescued(e)
17
17
  end
18
18
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'pry-rescue'
3
- s.version = '1.4.0'
3
+ s.version = '1.4.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'
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.executables = s.files.grep(%r{^bin/}).map{|f| File.basename f}
12
12
 
13
13
  s.add_dependency 'pry'
14
- s.add_dependency 'interception', '>= 0.4'
14
+ s.add_dependency 'interception', '>= 0.5'
15
15
 
16
16
  s.add_development_dependency 'pry-stack_explorer' # upgrade to regular dep?
17
17
 
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.4.0
4
+ version: 1.4.1
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: 2014-02-15 00:00:00.000000000 Z
13
+ date: 2014-04-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pry
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - '>='
34
34
  - !ruby/object:Gem::Version
35
- version: '0.4'
35
+ version: '0.5'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '>='
41
41
  - !ruby/object:Gem::Version
42
- version: '0.4'
42
+ version: '0.5'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: pry-stack_explorer
45
45
  requirement: !ruby/object:Gem::Requirement