nesty 1.0.1 → 1.0.2

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: 2c957a11159489c0fcb7b3592333fd3b9f078759
4
- data.tar.gz: ff3ecafe9e42f58142d4d3830609cc570e1ba463
3
+ metadata.gz: 458313e946f4c0a982a0dd14d1e9513c9914d972
4
+ data.tar.gz: c58c084a7da893b6f79d4c8d34ab59c902d9b35b
5
5
  SHA512:
6
- metadata.gz: f208108bdc8da056693a58e01ff2dcbc4a2547b6de70a93ab45fbf5c78441a22c1e14e425b000a8915db1ea65f918152fec1913a42b99e689eaf8c330a18a0ef
7
- data.tar.gz: 3f61b1039edb9a4de0fdb396fd243fdd1a5a50b4343454afa7ca9c8afca87e67e63c5d52d09ca8676093351de5f6e1e0f924396a1b6f81403807ba15b567e00a
6
+ metadata.gz: 3bdf564ea88f72c1d860a9a445aeb113093319c1f37082f7e674a48f50cc569bdf43c87d328293fd5c7e32521f58d70896eb14a79c48e1d2997f3cafcd1092bc
7
+ data.tar.gz: 77759c90a995e585a00f15455b44c5f1b3836c3cd38b1d5c14ed48252c946da44317c5dc5c3318656fefe0c3fa46e81dccd705c051cc377549d8953490d4ca35
@@ -11,7 +11,7 @@ module Nesty
11
11
  @raw_backtrace = backtrace
12
12
  if nested
13
13
  backtrace = backtrace - nested_raw_backtrace
14
- backtrace += ["#{nested.backtrace.first}: #{nested.message}"]
14
+ backtrace += ["#{nested.backtrace.first}: #{nested.message} (#{nested.class.name})"]
15
15
  backtrace += nested.backtrace[1..-1] || []
16
16
  end
17
17
  super(backtrace)
@@ -1,3 +1,3 @@
1
1
  module Nesty
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -59,7 +59,7 @@ describe Nesty::NestedError do
59
59
  it {subject.message.should == 'hello'}
60
60
  it {subject.backtrace.size.should == 3}
61
61
  it {subject.backtrace[0].should == 'x'}
62
- it {subject.backtrace[1].should == "a: #{nested_message}"}
62
+ it {subject.backtrace[1].should == "a: #{nested_message} (StandardError)"}
63
63
  it {subject.backtrace[2].should == 'b'}
64
64
  end
65
65
 
@@ -81,7 +81,7 @@ describe Nesty::NestedError do
81
81
  it {subject.message.should == 'hello'}
82
82
  it {subject.backtrace.size.should == 3}
83
83
  it {subject.backtrace[0].should == 'x'}
84
- it {subject.backtrace[1].should == "a: #{nested_message}"}
84
+ it {subject.backtrace[1].should == "a: #{nested_message} (StandardError)"}
85
85
  it {subject.backtrace[2].should == 'b'}
86
86
  end
87
87
  end
@@ -113,9 +113,9 @@ describe Nesty::NestedError do
113
113
  it {subject.backtrace.size.should == 6}
114
114
  it {subject.backtrace[0].should == 'w'}
115
115
  it {subject.backtrace[1].should == 'x'}
116
- it {subject.backtrace[2].should == "y: #{nested_message}"}
116
+ it {subject.backtrace[2].should == "y: #{nested_message} (TestError)"}
117
117
  it {subject.backtrace[3].should == 'z'}
118
- it {subject.backtrace[4].should == "a: #{nested_nested_message}"}
118
+ it {subject.backtrace[4].should == "a: #{nested_nested_message} (StandardError)"}
119
119
  it {subject.backtrace[5].should == 'b'}
120
120
  end
121
121
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nesty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Skorkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-11 00:00:00.000000000 Z
11
+ date: 2013-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler