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 +4 -4
- data/lib/pry-rescue/rspec.rb +2 -2
- data/pry-rescue.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04027ae7cb39da3c8dd9b75ba3f9e66a354bad63
|
4
|
+
data.tar.gz: ea1a1b6249256fe3ddd37d602f17465e22a5badb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e716ea90f3d98a65a6fd10ea31784cd86d238fa0e6419813166fdcd94e0743bb7738b7174d1ca05ff4892ca078293a001e1e7cfdc18c685f8aecc80f0209391
|
7
|
+
data.tar.gz: 80b9ef7e49860c211ccbf35e2d4aea851b2aa747e2c3f0ac6cd610b284526f80b063fd78c42c4cd374c5f1b8afcc4f9bc161584c0ef8f1f1090a733cc15d0aab
|
data/lib/pry-rescue/rspec.rb
CHANGED
@@ -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
|
|
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.4.
|
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.
|
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.
|
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-
|
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.
|
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.
|
42
|
+
version: '0.5'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: pry-stack_explorer
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|