pry-rescue 1.4.2 → 1.4.4

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: 5c100b1d2a77a25c90d941e40641bdf84382df35
4
- data.tar.gz: 9bf84fe4f040c636b6e1c456ef28f5378d88bdc5
3
+ metadata.gz: 4f172010c0305bf056583be808a855b588884aa1
4
+ data.tar.gz: 5a8bbae2af2a9825be0a19842215cde08c04c842
5
5
  SHA512:
6
- metadata.gz: d7b8e77d58f7fa9e0f7d7170b38904833027ead2ace1216ad86283679c7a76225202a4a4cb686be9cac3de884d60458de7650d00f9b2240b80eaeb8bc5af0ebf
7
- data.tar.gz: 1b161c794e9fa6749e9921fe7c02468ddf67147c96252c62f03c018f2f35299865b9fd3a9a9e7bef5783b56a04709977cef1e8764dfb92e3c600eea736229afb
6
+ metadata.gz: 9ca913249deeb8cc6916725fc8de936019a3701c9b9f8df5e087b6a953b05a3c36b975862e629fc6bc9876cec77f27ecd276c48f7d895477fc45ae7cd775e050
7
+ data.tar.gz: 5b1eac518eecbafe04b4736a22beea33e666b4b9d96beeffb884f618642e7bdaf09c78224b36acfef519322552b4d2d2377dd9129e82b8cd1694f3988ddf484a
@@ -1,5 +1,5 @@
1
1
  require 'pry-rescue'
2
- require 'rspec'
2
+ require 'rspec' unless defined?(RSpec)
3
3
 
4
4
  class PryRescue
5
5
  class RSpec
@@ -14,8 +14,13 @@ class PryRescue
14
14
 
15
15
  example.binding.eval('@exception = nil; @example && @example.instance_variable_set(:@exception, nil)')
16
16
  example.binding.eval('example.instance_variable_set(:@exception, nil) if defined?(example)')
17
- example.binding.eval('@example && @example.example_group_instance.instance_variable_set(:@__memoized, {})')
18
- example.binding.eval('example.example_group_instance.instance_variable_set(:@__memoized, {}) if defined?(example)')
17
+ if example.example_group_instance.respond_to?(:__init_memoized, true)
18
+ example.binding.eval('@example && @example.example_group_instance.instance_variable_set(:@__init_memoized, true)')
19
+ example.binding.eval('example.example_group_instance.instance_variable_set(:@__init_memoized, true) if defined?(example)')
20
+ else
21
+ example.binding.eval('@example && @example.example_group_instance.instance_variable_set(:@__memoized, {})')
22
+ example.binding.eval('example.example_group_instance.instance_variable_set(:@__memoized, {}) if defined?(example)')
23
+ end
19
24
  example.run
20
25
  e = example.binding.eval('@exception || @example && @example.instance_variable_get(:@exception)')
21
26
  e ||= example.binding.eval('example.instance_variable_get(:@exception) if defined?(example)')
@@ -1,12 +1,13 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'pry-rescue'
3
- s.version = '1.4.2'
3
+ s.version = '1.4.4'
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'
7
7
  s.email = ['conrad.irwin@gmail.com', 'jrmair@gmail.com', 'chris@ill-logic.com']
8
8
  s.authors = ['Conrad Irwin', 'banisterfiend', 'epitron']
9
9
  s.files = `git ls-files`.split("\n")
10
+ s.license = 'MIT'
10
11
  s.require_paths = ['lib']
11
12
  s.executables = s.files.grep(%r{^bin/}).map{|f| File.basename f}
12
13
 
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.2
4
+ version: 1.4.4
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: 2015-05-06 00:00:00.000000000 Z
13
+ date: 2016-05-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pry
@@ -183,7 +183,8 @@ files:
183
183
  - spec/pry_rescue_spec.rb
184
184
  - spec/spec_helper.rb
185
185
  homepage: https://github.com/ConradIrwin/pry-rescue
186
- licenses: []
186
+ licenses:
187
+ - MIT
187
188
  metadata: {}
188
189
  post_install_message:
189
190
  rdoc_options: []
@@ -201,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
202
  version: '0'
202
203
  requirements: []
203
204
  rubyforge_project:
204
- rubygems_version: 2.2.2
205
+ rubygems_version: 2.4.5
205
206
  signing_key:
206
207
  specification_version: 4
207
208
  summary: Open a pry session on any unhandled exceptions