eh 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -3
- data/lib/eh/version.rb +1 -1
- metadata +16 -16
data/README.md
CHANGED
@@ -50,14 +50,14 @@ Or install it yourself as:
|
|
50
50
|
times to retry, retry delay, and block arguments. Also call handle(exception, message) on
|
51
51
|
the list of handlers provided
|
52
52
|
|
53
|
-
def load_configuration(configuration_path
|
54
|
-
EH::retry!(:logger =>
|
53
|
+
def load_configuration(configuration_path)
|
54
|
+
EH::retry!(:logger => [@simple_logger, @verbose_logger],
|
55
55
|
:message => "Could not parse YAML configuration",
|
56
56
|
:args => [configuration_path],
|
57
57
|
:threshold => 5,
|
58
58
|
:delay => 0.5,
|
59
59
|
:exception_filter => [RuntimeError, IOError],
|
60
|
-
:handlers => [
|
60
|
+
:handlers => [EmailNotifier.new, ZabbixNotifier.new, AirbrakeNotifier.new]) do
|
61
61
|
YAML.load(File.open(configuration_path))
|
62
62
|
end
|
63
63
|
end
|
data/lib/eh/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ernst van Graan, Wynand van Dyk
|
@@ -15,12 +15,12 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-03-
|
18
|
+
date: 2013-03-20 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
name: bundler
|
22
21
|
prerelease: false
|
23
|
-
|
22
|
+
name: bundler
|
23
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
26
26
|
- - ~>
|
@@ -31,11 +31,11 @@ dependencies:
|
|
31
31
|
- 3
|
32
32
|
version: "1.3"
|
33
33
|
type: :development
|
34
|
-
|
34
|
+
requirement: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name: rake
|
37
36
|
prerelease: false
|
38
|
-
|
37
|
+
name: rake
|
38
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
@@ -45,11 +45,11 @@ dependencies:
|
|
45
45
|
- 0
|
46
46
|
version: "0"
|
47
47
|
type: :development
|
48
|
-
|
48
|
+
requirement: *id002
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
|
-
name: rspec
|
51
50
|
prerelease: false
|
52
|
-
|
51
|
+
name: rspec
|
52
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
54
54
|
requirements:
|
55
55
|
- - ">="
|
@@ -59,11 +59,11 @@ dependencies:
|
|
59
59
|
- 0
|
60
60
|
version: "0"
|
61
61
|
type: :development
|
62
|
-
|
62
|
+
requirement: *id003
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
|
-
name: simplecov
|
65
64
|
prerelease: false
|
66
|
-
|
65
|
+
name: simplecov
|
66
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
67
67
|
none: false
|
68
68
|
requirements:
|
69
69
|
- - ">="
|
@@ -73,7 +73,7 @@ dependencies:
|
|
73
73
|
- 0
|
74
74
|
version: "0"
|
75
75
|
type: :development
|
76
|
-
|
76
|
+
requirement: *id004
|
77
77
|
description: Error handler gem that allows wrapping of code blocks with support for block retry, logging, exception filtering and re-raise
|
78
78
|
email:
|
79
79
|
- ernst.van.graan@hetzner.co.za
|