bug_hunter 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/bug_hunter.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bug_hunter}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
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"]
12
- s.date = %q{2011-05-30}
12
+ s.date = %q{2011-05-31}
13
13
  s.default_executable = %q{bug_hunter}
14
14
  s.description = %q{sinatra app to manage web app exceptions}
15
15
  s.email = %q{krawek@gmail.com}
@@ -150,11 +150,14 @@ module BugHunter
150
150
 
151
151
  exception.backtrace.each do |line|
152
152
  if self.highlight_line?(line) && line =~ /^(.+):(\d+):in `(.+)'/
153
+ next if !File.exist?($1)
154
+
153
155
  doc[:file] = $1
154
156
  doc[:line] = $2.to_i
155
157
  doc[:method] = $3
156
158
 
157
159
  doc[:line_content] = File.open(doc[:file]).readlines[doc[:line]-1]
160
+
158
161
  break
159
162
  end
160
163
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - David A. Cuadrado
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-05-30 00:00:00 -05:00
17
+ date: 2011-05-31 00:00:00 -05:00
18
18
  default_executable: bug_hunter
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -231,7 +231,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
231
231
  requirements:
232
232
  - - ">="
233
233
  - !ruby/object:Gem::Version
234
- hash: 1815196173598934913
234
+ hash: -3508883573000149005
235
235
  segments:
236
236
  - 0
237
237
  version: "0"