bug_hunter 0.0.2 → 0.0.4

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.2
1
+ 0.0.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bug_hunter}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David A. Cuadrado"]
@@ -4,6 +4,7 @@ module BugHunter
4
4
  include Mongoid::Timestamps
5
5
 
6
6
  field :is_rails, :type => Boolean, :default => false
7
+ field :exception_type, :type => String
7
8
  field :message, :type => String, :required => true
8
9
  field :backtrace, :type => Array, :required => true
9
10
  field :url, :type => String, :required => true
@@ -99,6 +100,7 @@ module BugHunter
99
100
  doc = self.new
100
101
  doc[:message] = exception.message
101
102
  doc[:backtrace] = exception.backtrace
103
+ doc[:exception_type] = exception.class.to_s
102
104
 
103
105
  new_env = {}
104
106
  env.each do |k,v|
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
  -content_for :body do
15
- =list_view(@errors, :filter => true) { |error| [error_path(error), h(error.message)] }
15
+ =list_view(@errors, :filter => true) { |error| [error_path(error), h("[#{error.exception_type}] #{error.message}")] }
16
16
 
17
17
  -content_for :footer do
18
18
  %div{:"data-role" => "navbar"}
@@ -16,7 +16,7 @@
16
16
  %div(data-role="header" data-position="inline")
17
17
  %h1
18
18
  &= @title || "title is missing"
19
- %a(href="/" data-icon="star" class="ui-btn-right" data-theme="e")
19
+ %a(href="#{ENV["BUGHUNTER_PATH"]}/" data-icon="star" class="ui-btn-right" data-theme="e")
20
20
  Home
21
21
  =content(:header)
22
22
  %div(data-role="content")
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - David A. Cuadrado
@@ -231,7 +231,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
231
231
  requirements:
232
232
  - - ">="
233
233
  - !ruby/object:Gem::Version
234
- hash: -1886083630548519524
234
+ hash: 2462570985526728642
235
235
  segments:
236
236
  - 0
237
237
  version: "0"