graphite-api 0.0.1.1 → 0.0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/graphite-api/client.rb +1 -4
- data/lib/graphite-api/middleware.rb +1 -4
- data/lib/graphite-api/version.rb +1 -1
- metadata +4 -4
data/lib/graphite-api/client.rb
CHANGED
@@ -65,10 +65,7 @@ module GraphiteAPI
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def send_metrics
|
68
|
-
|
69
|
-
Proc.new { buffer.pull(:string) },
|
70
|
-
Proc.new { |data| connectors.publish(data) }
|
71
|
-
) if buffer.new_records?
|
68
|
+
connectors.publish buffer.pull(:string) if buffer.new_records?
|
72
69
|
end
|
73
70
|
|
74
71
|
def validate opt
|
@@ -57,10 +57,7 @@ module GraphiteAPI
|
|
57
57
|
|
58
58
|
# Send metrics to graphite every X seconds
|
59
59
|
GraphiteAPI::Reactor::every( options[:interval] ) do
|
60
|
-
|
61
|
-
Proc.new { buffer.pull(:string) },
|
62
|
-
Proc.new { |data| connectors.publish(data) }
|
63
|
-
) if buffer.new_records?
|
60
|
+
connectors.publish buffer.pull(:string) if buffer.new_records?
|
64
61
|
end # every
|
65
62
|
|
66
63
|
GraphiteAPI::Reactor::add_shutdown_hook do
|
data/lib/graphite-api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphite-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|
16
|
-
requirement: &
|
16
|
+
requirement: &70179921763180 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 0.3.3
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70179921763180
|
25
25
|
description: Graphite API - A Simple ruby client, aggregator daemon and API tools
|
26
26
|
email: eran@kontera.com
|
27
27
|
executables:
|