canary_notifier 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +14 -0
- data/Rakefile +2 -0
- data/canary_notifier.gemspec +15 -0
- data/lib/canary_notifier.rb +13 -0
- metadata +50 -0
data/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pkg
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
data/Rakefile
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Gem::Specification.new do |s|
|
|
2
|
+
s.name = 'canary_notifier'
|
|
3
|
+
s.version = '0.0.2'
|
|
4
|
+
s.authors = ["Henry Scudder"]
|
|
5
|
+
s.date = %q{2011-10-27}
|
|
6
|
+
s.summary = "Exception notification to Canary for Rails apps"
|
|
7
|
+
s.email = "support@canaryhq.com"
|
|
8
|
+
|
|
9
|
+
s.files = `git ls-files`.split("\n")
|
|
10
|
+
s.require_path = 'lib'
|
|
11
|
+
|
|
12
|
+
#s.add_dependency("actionmailer", ">= 3.0.4")
|
|
13
|
+
#s.add_development_dependency "rails", ">= 3.0.4"
|
|
14
|
+
#s.add_development_dependency "sqlite3", ">= 1.3.4"
|
|
15
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
class CanaryNotifier
|
|
2
|
+
def initialize(app, options = {})
|
|
3
|
+
@app, @options = app, options
|
|
4
|
+
end
|
|
5
|
+
|
|
6
|
+
def call(env)
|
|
7
|
+
@app.call(env)
|
|
8
|
+
rescue Exception => exception
|
|
9
|
+
#Notifier.exception_notification(env, exception).deliver
|
|
10
|
+
puts "CANARY!!!"
|
|
11
|
+
raise exception
|
|
12
|
+
end
|
|
13
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: canary_notifier
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.2
|
|
5
|
+
prerelease:
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- Henry Scudder
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2011-10-27 00:00:00.000000000Z
|
|
13
|
+
dependencies: []
|
|
14
|
+
description:
|
|
15
|
+
email: support@canaryhq.com
|
|
16
|
+
executables: []
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- .gitignore
|
|
21
|
+
- Gemfile
|
|
22
|
+
- Gemfile.lock
|
|
23
|
+
- Rakefile
|
|
24
|
+
- canary_notifier.gemspec
|
|
25
|
+
- lib/canary_notifier.rb
|
|
26
|
+
homepage:
|
|
27
|
+
licenses: []
|
|
28
|
+
post_install_message:
|
|
29
|
+
rdoc_options: []
|
|
30
|
+
require_paths:
|
|
31
|
+
- lib
|
|
32
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
33
|
+
none: false
|
|
34
|
+
requirements:
|
|
35
|
+
- - ! '>='
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
|
+
none: false
|
|
40
|
+
requirements:
|
|
41
|
+
- - ! '>='
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: '0'
|
|
44
|
+
requirements: []
|
|
45
|
+
rubyforge_project:
|
|
46
|
+
rubygems_version: 1.8.10
|
|
47
|
+
signing_key:
|
|
48
|
+
specification_version: 3
|
|
49
|
+
summary: Exception notification to Canary for Rails apps
|
|
50
|
+
test_files: []
|