failsafe 0.2.0 → 0.2.1

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.
@@ -1,5 +1,4 @@
1
1
  rvm:
2
2
  - 1.9.3
3
- - ree
4
3
  - ruby-head
5
4
  - rbx
data/README.md CHANGED
@@ -40,7 +40,7 @@ end
40
40
 
41
41
  ## Configuration
42
42
 
43
- Failsafe comes with 3 error backends by default: Airbrake, File, and Stderr.
43
+ Failsafe comes with 4 error backends by default: Airbrake, Exceptiona, File, and Stderr.
44
44
  You must add them to the failsafe configuration in order to log exceptions
45
45
  to them:
46
46
 
@@ -51,14 +51,15 @@ Failsafe.error_backends << Failsafe::Backends::Stderr
51
51
 
52
52
  ## Backends
53
53
 
54
- "Backends" are what your exceptions get handled by instead of letting them
54
+ "Backends" are what handle exceptions instead of letting them
55
55
  bubble up to the user. When an exception occurs within a piece of code wrapped
56
56
  by failsafe, the exception object is handed to each error backend.
57
57
 
58
- Failsafe ships with three error backends by default:
58
+ Failsafe ships with four error backends by default:
59
59
 
60
60
  * Airbrake - Send errors to airbrake
61
61
  * Exceptional - Send errors to exceptional
62
+ * Honeybadger - Send errors to honeybadger (see: https://honeybadger.io)
62
63
  * Stderr - Send errors to stderr
63
64
  * File - Send errors to a log file
64
65
 
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
6
6
  s.name = "failsafe"
7
7
  s.version = Failsafe::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
- s.authors = ["Alex Sharp"]
10
- s.email = ["ajsharp@gmail.com"]
9
+ s.authors = ["Alex Sharp", "Zachary Heller"]
10
+ s.email = ["ajsharp@gmail.com", "zheller@gmail.com"]
11
11
  s.homepage = "https://github.com/zaarly/failsafe"
12
12
  s.summary = %q{Tiny little library for silently handling errors so they don't interrupt program flow.}
13
13
  s.description = %q{}
@@ -0,0 +1,11 @@
1
+ module Failsafe
2
+ module Backends
3
+
4
+ # Failure backend to send errors to Airbrake
5
+ class Honeybadger < Base
6
+ def save
7
+ ::Honeybadger.notify(exception)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -6,5 +6,6 @@ module Failsafe
6
6
  autoload :File, 'failsafe/backends/file'
7
7
  autoload :Stderr, 'failsafe/backends/stderr'
8
8
  autoload :Exceptional, 'failsafe/backends/exceptional'
9
+ autoload :Honeybadger, 'failsafe/backends/honeybadger'
9
10
  end
10
11
  end
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Failsafe
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
metadata CHANGED
@@ -1,19 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: failsafe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alex Sharp
9
+ - Zachary Heller
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2012-06-26 00:00:00.000000000 Z
13
+ date: 2013-01-30 00:00:00.000000000 Z
13
14
  dependencies: []
14
15
  description: ''
15
16
  email:
16
17
  - ajsharp@gmail.com
18
+ - zheller@gmail.com
17
19
  executables: []
18
20
  extensions: []
19
21
  extra_rdoc_files: []
@@ -31,6 +33,7 @@ files:
31
33
  - lib/failsafe/backends/base.rb
32
34
  - lib/failsafe/backends/exceptional.rb
33
35
  - lib/failsafe/backends/file.rb
36
+ - lib/failsafe/backends/honeybadger.rb
34
37
  - lib/failsafe/backends/stderr.rb
35
38
  - lib/failsafe/failure.rb
36
39
  - lib/failsafe/version.rb
@@ -61,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
64
  version: '0'
62
65
  requirements: []
63
66
  rubyforge_project:
64
- rubygems_version: 1.8.15
67
+ rubygems_version: 1.8.24
65
68
  signing_key:
66
69
  specification_version: 3
67
70
  summary: Tiny little library for silently handling errors so they don't interrupt