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 +4 -4
- data/lib/pretty_backtrace.rb +7 -2
- data/lib/pretty_backtrace/version.rb +1 -1
- data/test.rb +12 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b02cc56d4e1bdd757e983db545cc8ac76fb3da0
|
4
|
+
data.tar.gz: 124e732e3c4d998e08abffce46129783f32c651d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57ec482eb07dd60063049705cf3613ada47eecfd3c396a6a07a7d907331b32e79281b1993eec26b4d3b4059f31baace18c1db603133096410bd3d87d78227a4d
|
7
|
+
data.tar.gz: 6a825df8a8ed15ad9c109065861940ed73aeda8ed1d45aa8ee975bb4f20359c8d6eaa9ea46663ae7bd9c900ca836b5492ff4cd35eb770fd393b07133ab2ec9aa
|
data/lib/pretty_backtrace.rb
CHANGED
@@ -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
|
-
|
42
|
-
|
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 = {}
|
data/test.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debug_inspector
|