pretty_backtrace 0.1.1 → 0.1.2

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: 901594325c18d407574d514765134a0156cd98dd
4
- data.tar.gz: d73af85e93635f5f91a7f485a9ee7ba59a379a2e
3
+ metadata.gz: 0b02cc56d4e1bdd757e983db545cc8ac76fb3da0
4
+ data.tar.gz: 124e732e3c4d998e08abffce46129783f32c651d
5
5
  SHA512:
6
- metadata.gz: 53d0b2c71b720dbdc070bd855e8cd17c12e52a337c557565b73cc028ecdc71f20d79d2385f277f453b5812ca1f0ae807e1ec46e3f03c2a78a814d29ccbbc08cd
7
- data.tar.gz: 2e32d8f6aa0d850739c4912bbd333e4c00ab8194ea5d1d0367e59cf84118aecc1baf96f40d4aaa0b1f25d1610430c145ec06b1de7521372df55f09c6a9440460
6
+ metadata.gz: 57ec482eb07dd60063049705cf3613ada47eecfd3c396a6a07a7d907331b32e79281b1993eec26b4d3b4059f31baace18c1db603133096410bd3d87d78227a4d
7
+ data.tar.gz: 6a825df8a8ed15ad9c109065861940ed73aeda8ed1d45aa8ee975bb4f20359c8d6eaa9ea46663ae7bd9c900ca836b5492ff4cd35eb770fd393b07133ab2ec9aa
@@ -38,8 +38,13 @@ module PrettyBacktrace
38
38
  b = dc.frame_binding(i)
39
39
  lvs = iseq_local_variables(iseq)
40
40
  lvs_val = lvs.inject({}){|r, lv|
41
- v = b.local_variable_get(lv).inspect
42
- r[lv] = v; r
41
+ begin
42
+ v = b.local_variable_get(lv).inspect
43
+ r[lv] = v
44
+ rescue NameError
45
+ # ignore
46
+ end
47
+ r
43
48
  }
44
49
  else
45
50
  lvs_val = {}
@@ -1,3 +1,3 @@
1
1
  module PrettyBacktrace
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/test.rb CHANGED
@@ -1,7 +1,18 @@
1
1
  $: << './lib'
2
2
  require 'pretty_backtrace/enable'
3
3
 
4
- PrettyBacktrace.multi_line = true
4
+ PrettyBacktrace::multi_line = true
5
+
6
+ 1.times{
7
+ 2.times{
8
+ 3.times{
9
+ raise
10
+ }
11
+ }
12
+ }
13
+
14
+ __END__
15
+
5
16
 
6
17
  1.times{
7
18
  1.times{
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty_backtrace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koichi Sasada
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-05 00:00:00.000000000 Z
11
+ date: 2015-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debug_inspector