errplane 0.4.0 → 0.4.1

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/todd/Projects/errplane/gem
3
3
  specs:
4
- errplane (0.4.0)
4
+ errplane (0.4.1)
5
5
  actionpack (>= 2.3.14)
6
6
  activesupport (>= 2.3.14)
7
7
  json
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/todd/Projects/errplane/gem
3
3
  specs:
4
- errplane (0.4.0)
4
+ errplane (0.4.1)
5
5
  actionpack (>= 2.3.14)
6
6
  activesupport (>= 2.3.14)
7
7
  json
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/todd/Projects/errplane/gem
3
3
  specs:
4
- errplane (0.4.0)
4
+ errplane (0.4.1)
5
5
  actionpack (>= 2.3.14)
6
6
  activesupport (>= 2.3.14)
7
7
  json
@@ -31,6 +31,10 @@ module Errplane
31
31
  end
32
32
  end
33
33
 
34
+ def to_a
35
+ lines.map(&:to_s)
36
+ end
37
+
34
38
  def inspect
35
39
  "<Backtrace: " + lines.collect { |line| line.to_s }.join(", ") + ">"
36
40
  end
@@ -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}",
@@ -1,3 +1,3 @@
1
1
  module Errplane
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -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|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: errplane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: