canary_notifier 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'canary_notifier'
3
- s.version = '0.0.12'
3
+ s.version = '0.0.13'
4
4
  s.authors = ["Henry Scudder"]
5
5
  s.date = %q{2011-10-27}
6
6
  s.summary = "Exception notification to Canary for Rails apps"
@@ -9,7 +9,7 @@ class CanaryNotifier
9
9
  @app.call(env)
10
10
  rescue Exception => e
11
11
  url = 'http://stark:abc123@bugdrop.canary.io/notify'
12
- (file_name, line_number, method) = parse_backtrace_line(e.backtrace.first)
12
+ (file_name, line_number, method) = parse_backtrace_line(find_our_backtrace_line(e.backtrace))
13
13
 
14
14
  data = {}
15
15
  data["app_name"] = @options[:app_name] || "No Name"
@@ -50,4 +50,10 @@ class CanaryNotifier
50
50
  parts
51
51
  end
52
52
  end
53
+
54
+ def find_our_backtrace_line(backtrace)
55
+ backtrace.each do |l|
56
+ return l if !l.match(/gems/)
57
+ end
58
+ end
53
59
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canary_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-27 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
16
- requirement: &70196572553780 !ruby/object:Gem::Requirement
16
+ requirement: &70202608083380 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70196572553780
24
+ version_requirements: *70202608083380
25
25
  description:
26
26
  email: support@canaryhq.com
27
27
  executables: []