canary_notifier 0.0.3 → 0.0.4

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.3'
3
+ s.version = '0.0.4'
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"
@@ -7,7 +7,7 @@ class CanaryNotifier
7
7
 
8
8
  def call(env)
9
9
  @app.call(env)
10
- rescue Exception => exception
10
+ rescue Exception => e
11
11
  puts "CANARY!!!"
12
12
  url = 'http://stark:abc123@bugdrop.canary.io/notify'
13
13
  first_line = e.backtrace.first
@@ -25,6 +25,6 @@ class CanaryNotifier
25
25
  data["code_sample_line_start"] = line_number.to_i - 3
26
26
  RestClient.post url, data.to_json
27
27
 
28
- raise exception
28
+ raise e
29
29
  end
30
30
  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.3
4
+ version: 0.0.4
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: &70189114815580 !ruby/object:Gem::Requirement
16
+ requirement: &70342002097480 !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: *70189114815580
24
+ version_requirements: *70342002097480
25
25
  description:
26
26
  email: support@canaryhq.com
27
27
  executables: []