errbase 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +13 -5
- data/Rakefile +1 -1
- data/errbase.gemspec +5 -4
- data/lib/errbase.rb +9 -28
- data/lib/errbase/version.rb +1 -1
- data/test/errbase_test.rb +0 -2
- data/test/test_helper.rb +1 -0
- metadata +18 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e452eb9ff2a9c7f26127ecfdcaa8e0735853b7fb
|
4
|
+
data.tar.gz: 8841bc49a1ee0e21b3c8cbf22ad8380b0db6a625
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aadca4aa40b422fbd49f2690933f9da71af2d2810be9504ac2bb1d153984887b300830467d6cb12f0e48be5cd86f23c8c749bcc68b30d910bb013569671493dd
|
7
|
+
data.tar.gz: f835658cd4f1cb9dc19bd0551a27bad578fa1b8644421efb4de43e32326cac7a32280e329affb9888507cfc87fc3070cf0974961e5ba50b87ba76d5ef5b5e23d
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,18 @@
|
|
1
1
|
# Errbase
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
A common exception reporting library for a variety of services.
|
4
|
+
|
5
|
+
Libraries are automatically detected. Supports:
|
6
|
+
|
7
|
+
- [Rollbar](https://rollbar.com/)
|
8
|
+
- [Airbrake](https://airbrake.io/)
|
9
|
+
- [Exceptional](http://www.exceptional.io/)
|
10
|
+
- [Honeybadger](https://www.honeybadger.io/)
|
11
|
+
- [Sentry](https://getsentry.com/)
|
12
|
+
- [Raygun](https://raygun.io/)
|
13
|
+
- [Bugsnag](https://bugsnag.com/)
|
14
|
+
- [Appsignal](https://appsignal.com/)
|
15
|
+
- [Opbeat](https://opbeat.com/)
|
8
16
|
|
9
17
|
```ruby
|
10
18
|
begin
|
data/Rakefile
CHANGED
data/errbase.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# coding: utf-8
|
2
|
-
lib = File.expand_path(
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require
|
4
|
+
require "errbase/version"
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "errbase"
|
8
8
|
spec.version = Errbase::VERSION
|
9
9
|
spec.authors = ["Andrew Kane"]
|
10
10
|
spec.email = ["andrew@chartkick.com"]
|
11
|
-
spec.summary =
|
12
|
-
spec.description =
|
11
|
+
spec.summary = "Common exception reporting for a variety of services"
|
12
|
+
spec.description = "Common exception reporting for a variety of services"
|
13
13
|
spec.homepage = "https://github.com/ankane/errbase"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -30,4 +30,5 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency "sentry-raven"
|
31
31
|
spec.add_development_dependency "bugsnag"
|
32
32
|
spec.add_development_dependency "appsignal"
|
33
|
+
spec.add_development_dependency "opbeat"
|
33
34
|
end
|
data/lib/errbase.rb
CHANGED
@@ -1,36 +1,17 @@
|
|
1
1
|
require "errbase/version"
|
2
2
|
|
3
3
|
module Errbase
|
4
|
-
|
5
4
|
class << self
|
6
|
-
|
7
5
|
def report(e)
|
8
|
-
if defined?(Rollbar)
|
9
|
-
|
10
|
-
|
11
|
-
if defined?(
|
12
|
-
|
13
|
-
|
14
|
-
if defined?(
|
15
|
-
|
16
|
-
|
17
|
-
if defined?(Exceptional)
|
18
|
-
Exceptional.handle(e)
|
19
|
-
end
|
20
|
-
if defined?(Raygun)
|
21
|
-
Raygun.track_exception(e)
|
22
|
-
end
|
23
|
-
if defined?(Raven)
|
24
|
-
Raven.capture_exception(e)
|
25
|
-
end
|
26
|
-
if defined?(Bugsnag)
|
27
|
-
Bugsnag.notify(e)
|
28
|
-
end
|
29
|
-
if defined?(Appsignal)
|
30
|
-
Appsignal.send_exception(e)
|
31
|
-
end
|
6
|
+
Rollbar.error(e) if defined?(Rollbar)
|
7
|
+
Airbrake.notify(e) if defined?(Airbrake)
|
8
|
+
Honeybadger.notify(e) if defined?(Honeybadger)
|
9
|
+
Exceptional.handle(e) if defined?(Exceptional)
|
10
|
+
Raygun.track_exception(e) if defined?(Raygun)
|
11
|
+
Raven.capture_exception(e) if defined?(Raven)
|
12
|
+
Bugsnag.notify(e) if defined?(Bugsnag)
|
13
|
+
Appsignal.send_exception(e) if defined?(Appsignal)
|
14
|
+
Opbeat.capture_exception(e) if defined?(Opbeat)
|
32
15
|
end
|
33
|
-
|
34
16
|
end
|
35
|
-
|
36
17
|
end
|
data/lib/errbase/version.rb
CHANGED
data/test/errbase_test.rb
CHANGED
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: errbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -164,6 +164,20 @@ dependencies:
|
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: opbeat
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
167
181
|
description: Common exception reporting for a variety of services
|
168
182
|
email:
|
169
183
|
- andrew@chartkick.com
|
@@ -201,10 +215,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
215
|
version: '0'
|
202
216
|
requirements: []
|
203
217
|
rubyforge_project:
|
204
|
-
rubygems_version: 2.
|
218
|
+
rubygems_version: 2.4.5
|
205
219
|
signing_key:
|
206
220
|
specification_version: 4
|
207
221
|
summary: Common exception reporting for a variety of services
|
208
222
|
test_files:
|
209
223
|
- test/errbase_test.rb
|
210
224
|
- test/test_helper.rb
|
225
|
+
has_rdoc:
|