errplane 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/errplane/backtrace.rb
CHANGED
data/lib/errplane/black_box.rb
CHANGED
@@ -29,7 +29,7 @@ module Errplane
|
|
29
29
|
:framework => Errplane.configuration.framework,
|
30
30
|
:framework_version => Errplane.configuration.framework_version,
|
31
31
|
:message => @exception.message,
|
32
|
-
:backtrace => @exception.backtrace || [],
|
32
|
+
:backtrace => Errplane::Backtrace.new(@exception.backtrace).to_a || [],
|
33
33
|
:exception_class => @exception.class.to_s,
|
34
34
|
:language => "Ruby",
|
35
35
|
:language_version => "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}",
|
data/lib/errplane/version.rb
CHANGED
data/spec/unit/backtrace_spec.rb
CHANGED
@@ -24,6 +24,12 @@ describe Errplane::Backtrace do
|
|
24
24
|
line.method.should == "bar"
|
25
25
|
end
|
26
26
|
|
27
|
+
describe "#to_a" do
|
28
|
+
it "should return an array of lines" do
|
29
|
+
@backtrace.to_a.is_a?(Array).should be_true
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
27
33
|
describe "backtrace filters" do
|
28
34
|
before do
|
29
35
|
Errplane.configure do |config|
|