riemann-tools 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/riemann/tools.rb +6 -3
- metadata +2 -2
data/lib/riemann/tools.rb
CHANGED
@@ -55,7 +55,8 @@ module Riemann
|
|
55
55
|
|
56
56
|
def report(event)
|
57
57
|
if options[:tag]
|
58
|
-
|
58
|
+
# Work around a bug with beefcake which can't take frozen strings.
|
59
|
+
event[:tags] = options[:tag].map(&:dup)
|
59
60
|
end
|
60
61
|
|
61
62
|
if options[:ttl]
|
@@ -63,12 +64,14 @@ module Riemann
|
|
63
64
|
end
|
64
65
|
|
65
66
|
if options[:event_host]
|
66
|
-
event[:host] = options[:event_host]
|
67
|
+
event[:host] = options[:event_host].dup
|
67
68
|
end
|
69
|
+
|
70
|
+
event = event.merge(attributes)
|
68
71
|
|
69
72
|
begin
|
70
73
|
Timeout::timeout(options[:timeout]) do
|
71
|
-
riemann << event
|
74
|
+
riemann << event
|
72
75
|
end
|
73
76
|
rescue Timeout::Error
|
74
77
|
riemann.connect
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: riemann-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: riemann-client
|