backtracer 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/backtracer.rb +5 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/lib/backtracer.rb
CHANGED
@@ -6,7 +6,9 @@ require File.dirname(__FILE__) + "/shared"
|
|
6
6
|
|
7
7
|
at_exit {
|
8
8
|
if $! && !$!.is_a?(SystemExit) # SystemExit's are normal, not exceptional
|
9
|
-
print "\n
|
9
|
+
print "\n"
|
10
|
+
print "\t" unless defined?($same_line)
|
11
|
+
|
10
12
|
puts $!.inspect + ' ' + $!.to_s
|
11
13
|
|
12
14
|
max = 0
|
@@ -29,7 +31,8 @@ at_exit {
|
|
29
31
|
}.compact
|
30
32
|
puts backtrace_with_code
|
31
33
|
puts # blank line
|
32
|
-
|
34
|
+
# for some reason this can be nil...
|
35
|
+
$!.set_backtrace [] if $! # avoid the original backtrace being outputted--though annoyingly it does still output its #to_s...
|
33
36
|
|
34
37
|
else
|
35
38
|
puts "(backtracer: no exception found to backtrace)" if $VERBOSE
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backtracer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors: []
|
7
7
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-21 00:00:00 -07:00
|
13
13
|
default_executable: backtracer
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|