bug_hunter 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,9 +1,30 @@
1
1
  = bug_hunter
2
2
 
3
- Description goes here.
3
+
4
+ == Install on Rails
5
+
6
+ on project root type:
7
+
8
+ bug_hunter --install
9
+
10
+ add this to Gemfile:
11
+
12
+ gem "bug_hunter"
13
+
14
+ add this to config/routes.rb:
15
+
16
+ ENV["BUGHUNTER_PATH"] = "/errors"
17
+ require 'bug_hunter'
18
+ ...
19
+ mount BugHunter.app => ENV["BUGHUNTER_PATH"]
20
+
21
+ enable the middleware on config/application.rb:
22
+
23
+ config.middleware.use "BugHunter::Middleware"
24
+
4
25
 
5
26
  == Contributing to bug_hunter
6
-
27
+
7
28
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
29
  * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
30
  * Fork the project
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
data/bug_hunter.gemspec CHANGED
@@ -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.4"
8
+ s.version = "0.0.5"
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"]
@@ -3,6 +3,10 @@ module BugHunter
3
3
  def error_path(error)
4
4
  "#{ENV["BUGHUNTER_PATH"]}/errors/#{error.id}"
5
5
  end
6
+
7
+ def root_path
8
+ "#{ENV["BUGHUNTER_PATH"]}/"
9
+ end
6
10
  end
7
11
  end
8
12
 
@@ -43,6 +43,7 @@
43
43
  %div(data-role="collapsible" data-collapsed=true)
44
44
  %h3
45
45
  Similar Errors
46
+ ==(#{@error.similar_errors.count})
46
47
  %br
47
48
  =list_view(@error.similar_errors.all) { |error| [error_path(error), h(error.message)] }
48
49
  %br
@@ -50,6 +51,7 @@
50
51
  %div(data-role="collapsible" data-collapsed=true)
51
52
  %h3
52
53
  Comments
54
+ ==("#{@error.comments_count}")
53
55
  -(@error.comments||[]).each do |comment|
54
56
  %div(data-role="collapsible" data-collapsed=false data-theme="b")
55
57
  %h3
@@ -4,10 +4,10 @@
4
4
  %div{:"data-role" => "navbar"}
5
5
  %ul
6
6
  %li
7
- %a(href="/?resolved=1")
7
+ %a(href="#{root_path}?resolved=1")
8
8
  Resolved
9
9
  %li
10
- %a(href="/?unassigned=1")
10
+ %a(href="#{root_path}?unassigned=1")
11
11
  Unassigned
12
12
 
13
13
 
@@ -19,5 +19,5 @@
19
19
  %ul
20
20
  -(BugHunter::Project.instance.members||[]).each do |member|
21
21
  %li
22
- %a(href="/?assignee=#{member}")
22
+ %a(href="#{root_path}?assignee=#{member}")
23
23
  &=member
@@ -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="#{ENV["BUGHUNTER_PATH"]}/" data-icon="star" class="ui-btn-right" data-theme="e")
19
+ %a(href="#{root_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
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
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: 2462570985526728642
234
+ hash: 3061019457110582907
235
235
  segments:
236
236
  - 0
237
237
  version: "0"