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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c019dffdb5bc1cf47bd6b6615de58269b410fef5
4
- data.tar.gz: 930e71d21c14ae3f069d0f3f70250bbe288c1992
3
+ metadata.gz: e452eb9ff2a9c7f26127ecfdcaa8e0735853b7fb
4
+ data.tar.gz: 8841bc49a1ee0e21b3c8cbf22ad8380b0db6a625
5
5
  SHA512:
6
- metadata.gz: a877507dfe2825eb9bfd7c0ee2ca6cb0d27d713b60d12d8bda2e0de7274bfa1443462e5a37b4642e975ffcfce082fafbb3d5f84bb2bab2aeb29ca8c7b9a43522
7
- data.tar.gz: a0bac123e4be9a3b940f80990fed19e0da15e58d8854f49551993d3abd43d7fa2507fc1db2de5837fa9c219dd6e161a9c343a49a59dd95611946f9b7ef823e60
6
+ metadata.gz: aadca4aa40b422fbd49f2690933f9da71af2d2810be9504ac2bb1d153984887b300830467d6cb12f0e48be5cd86f23c8c749bcc68b30d910bb013569671493dd
7
+ data.tar.gz: f835658cd4f1cb9dc19bd0551a27bad578fa1b8644421efb4de43e32326cac7a32280e329affb9888507cfc87fc3070cf0974961e5ba50b87ba76d5ef5b5e23d
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in errbase.gemspec
4
4
  gemspec
data/README.md CHANGED
@@ -1,10 +1,18 @@
1
1
  # Errbase
2
2
 
3
- Common exception reporting for a variety of services
4
-
5
- Automatically detects reporting libraries
6
-
7
- Supports [Rollbar](https://rollbar.com/), [Airbrake](https://airbrake.io/), [Exceptional](http://www.exceptional.io/), [Honeybadger](https://www.honeybadger.io/), [Sentry](https://getsentry.com/), [Raygun](https://raygun.io/), [Bugsnag](https://bugsnag.com/) and [Appsignal](https://appsignal.com/)
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
@@ -1,7 +1,7 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rake/testtask"
3
3
 
4
- task :default => :test
4
+ task default: :test
5
5
  Rake::TestTask.new do |t|
6
6
  t.libs << "test"
7
7
  t.pattern = "test/**/*_test.rb"
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
2
+ lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'errbase/version'
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 = %q{Common exception reporting for a variety of services}
12
- spec.description = %q{Common exception reporting for a variety of services}
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
@@ -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
- Rollbar.report_exception(e)
10
- end
11
- if defined?(Airbrake)
12
- Airbrake.notify(e)
13
- end
14
- if defined?(Honeybadger)
15
- Honeybadger.notify(e)
16
- end
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
@@ -1,3 +1,3 @@
1
1
  module Errbase
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -1,9 +1,7 @@
1
1
  require_relative "test_helper"
2
2
 
3
3
  class TestErrbase < Minitest::Test
4
-
5
4
  def test_errbase
6
5
  Errbase.report(RuntimeError.new("Boom"))
7
6
  end
8
-
9
7
  end
@@ -10,3 +10,4 @@ require "honeybadger"
10
10
  require "sentry-raven"
11
11
  require "bugsnag"
12
12
  require "appsignal"
13
+ require "opbeat"
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.2
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: 2014-11-02 00:00:00.000000000 Z
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.2.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: