ffwd-statsd 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3b4a2e4bcc5b14ee961b01cf6c0dc3c5e70e6f9
4
- data.tar.gz: 69c7889991e1805b59406940512b4aec82137bea
3
+ metadata.gz: 0da892b86b3bd0c5a4d0061983b91f6b8a9f71c9
4
+ data.tar.gz: 97cf57ea452296227a35aebc9a3686057280a246
5
5
  SHA512:
6
- metadata.gz: 3b4795f0c30ef9bb1550251651eba363fc414e319ec47f23e95d0d19145078ebd9f1efe57765bb0fd4d72e758fe11b97b190459114ec90ac8ad23c0a2fab6043
7
- data.tar.gz: 5c09548c46acd68ef354d8e6eb220f1fe0b1e1d86761fa00f9cfd508b1fbb7055f716beafcbcc81403655987224cd69db9351dfc772335ad34e6550fcd02114d
6
+ metadata.gz: 9fded3249a8de690315fda9ec33188f5e284937953a4a4a58f689656afa83173b2cbd8819a17b53607381dd970c9de50369ebd2784add3df4e13eaf48fb9cf9a
7
+ data.tar.gz: 8d89eecd1607a009ec49b993d6a35b8e23fa7421154776350d4763daf8bc7acefd00f63409412f58855a602661dc79eec6a076b69a43c1e129c24ad80e007de3
@@ -27,9 +27,7 @@ module FFWD::Plugin::Statsd
27
27
  protected
28
28
 
29
29
  def receive_statsd_frame(data)
30
- metric = Parser.parse(data)
31
- return if metric.nil?
32
- @core.input.metric metric
30
+ @core.input.metric Parser.parse(data)
33
31
  @bind.increment :received_metrics
34
32
  rescue ParserError => e
35
33
  log.error "Invalid frame '#{data}': #{e}"
@@ -16,7 +16,7 @@
16
16
  module FFWD
17
17
  module Plugin
18
18
  module Statsd
19
- VERSION = "0.2.0"
19
+ VERSION = "0.2.1"
20
20
  end
21
21
  end
22
22
  end
@@ -35,7 +35,9 @@ module FFWD::Plugin::Statsd
35
35
  end
36
36
 
37
37
  def receive_data data
38
- receive_statsd_frame data
38
+ data.split("\n").each do |line|
39
+ receive_statsd_frame line
40
+ end
39
41
  end
40
42
  end
41
43
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffwd-statsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John-John Tedro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-02 00:00:00.000000000 Z
11
+ date: 2014-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffwd
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.0
19
+ version: 0.2.1
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.0
26
+ version: 0.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement