loganb-nestegg 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
@@ -5,7 +5,7 @@ module Nestegg
5
5
 
6
6
  def initialize message = nil, cause = $!
7
7
  @cause = cause
8
- super(message ||= cause.message)
8
+ super(message || cause && cause.message)
9
9
  end
10
10
 
11
11
  def set_backtrace bt
@@ -84,4 +84,12 @@ describe Nestegg::NestingException do
84
84
  end
85
85
  end
86
86
 
87
+ it "handles nil exception messages" do
88
+ begin
89
+ tne = TestNestingError.new(nil)
90
+ raise tne
91
+ rescue Exception => e
92
+ e.message.should == TestNestingError.to_s
93
+ end
94
+ end
87
95
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loganb-nestegg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - John D. Hume
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-12-01 00:00:00 -08:00
14
+ date: 2009-12-11 00:00:00 -08:00
15
15
  default_executable:
16
16
  dependencies: []
17
17