backtracer 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/backtracer.rb +5 -2
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
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\t" unless defined?($same_line)
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
- $!.set_backtrace [] # avoid the original backtrace being outputted--though annoyingly it does still output its #to_s...
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.1
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-11-19 00:00:00 -07:00
12
+ date: 2009-12-21 00:00:00 -07:00
13
13
  default_executable: backtracer
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency