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.
- data/.travis.yml +0 -1
- data/README.md +4 -3
- data/failsafe.gemspec +2 -2
- data/lib/failsafe/backends/honeybadger.rb +11 -0
- data/lib/failsafe/failure.rb +1 -0
- data/lib/failsafe/version.rb +1 -1
- metadata +6 -3
data/README.md
CHANGED
@@ -40,7 +40,7 @@ end
|
|
40
40
|
|
41
41
|
## Configuration
|
42
42
|
|
43
|
-
Failsafe comes with
|
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
|
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
|
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
|
|
data/failsafe.gemspec
CHANGED
@@ -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{}
|
data/lib/failsafe/failure.rb
CHANGED
data/lib/failsafe/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|