pretty_backtrace 0.1.2 → 0.1.3
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 +2 -2
- data/lib/pretty_backtrace/version.rb +1 -1
- data/test.rb +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 898da81bb2e3f0d6380663052f591f163066e358
|
4
|
+
data.tar.gz: 55e2880d53408c131c72123370a9333f8608bb9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 485dd4b5f25d946f18ca795fc721a6c196d4aae69c9060533f6a6edbe1e8a6d341b7fa4d767ea4b33f2b1e4f46274f5ef70760c49c3bf68a60057179defde3de
|
7
|
+
data.tar.gz: ac2ca2b5e4fa7881e55db51962a932c41c1ebe312f3cf29fe1be086b43aaff4af7a2cec01b74e7cf44d1e138f5ae549a8d1d8c7595c6dccd1e3f72fe30cc2353
|
data/lib/pretty_backtrace.rb
CHANGED
@@ -41,7 +41,7 @@ module PrettyBacktrace
|
|
41
41
|
begin
|
42
42
|
v = b.local_variable_get(lv).inspect
|
43
43
|
r[lv] = v
|
44
|
-
rescue NameError
|
44
|
+
rescue NameError,TypeError
|
45
45
|
# ignore
|
46
46
|
end
|
47
47
|
r
|
@@ -63,7 +63,7 @@ module PrettyBacktrace
|
|
63
63
|
|
64
64
|
def self.iseq_local_variables iseq
|
65
65
|
_,_,_,_,arg_info,name,path,a_path,_,type,lvs, * = iseq.to_a
|
66
|
-
lvs
|
66
|
+
lvs.select{|lv| lv.is_a?(Symbol) || lv.is_a?(String) }
|
67
67
|
end
|
68
68
|
|
69
69
|
#
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Koichi Sasada
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debug_inspector
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
92
|
+
rubygems_version: 2.5.1
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: Pretty your exception backtrace.
|