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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b02cc56d4e1bdd757e983db545cc8ac76fb3da0
4
- data.tar.gz: 124e732e3c4d998e08abffce46129783f32c651d
3
+ metadata.gz: 898da81bb2e3f0d6380663052f591f163066e358
4
+ data.tar.gz: 55e2880d53408c131c72123370a9333f8608bb9b
5
5
  SHA512:
6
- metadata.gz: 57ec482eb07dd60063049705cf3613ada47eecfd3c396a6a07a7d907331b32e79281b1993eec26b4d3b4059f31baace18c1db603133096410bd3d87d78227a4d
7
- data.tar.gz: 6a825df8a8ed15ad9c109065861940ed73aeda8ed1d45aa8ee975bb4f20359c8d6eaa9ea46663ae7bd9c900ca836b5492ff4cd35eb770fd393b07133ab2ec9aa
6
+ metadata.gz: 485dd4b5f25d946f18ca795fc721a6c196d4aae69c9060533f6a6edbe1e8a6d341b7fa4d767ea4b33f2b1e4f46274f5ef70760c49c3bf68a60057179defde3de
7
+ data.tar.gz: ac2ca2b5e4fa7881e55db51962a932c41c1ebe312f3cf29fe1be086b43aaff4af7a2cec01b74e7cf44d1e138f5ae549a8d1d8c7595c6dccd1e3f72fe30cc2353
@@ -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
  #
@@ -1,3 +1,3 @@
1
1
  module PrettyBacktrace
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/test.rb CHANGED
@@ -3,6 +3,12 @@ require 'pretty_backtrace/enable'
3
3
 
4
4
  PrettyBacktrace::multi_line = true
5
5
 
6
+ 1.times{|*|
7
+ raise
8
+ }
9
+
10
+ __END__
11
+
6
12
  1.times{
7
13
  2.times{
8
14
  3.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.2
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: 2015-02-13 00:00:00.000000000 Z
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.4.5
92
+ rubygems_version: 2.5.1
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: Pretty your exception backtrace.