ffwd 0.1.4 → 0.1.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 399b60314faf88d004f58c6a578fc968e4b6b095
4
- data.tar.gz: 201562d116a908844b4fac300df5e7bf23ae4134
5
- SHA512:
6
- metadata.gz: 0084bb8b41d524eca21b3ab8939eee8e5030819fdae4be59e27d5a6738b765d375a377c0b9dfd6a6fd59233cf32602455438996dd4751adeae2e0e7c441848e6
7
- data.tar.gz: 2a9cabb995a497007b4470a211efccd99e04345d18e91461a3d744e9d52cab535013f4f5d197e011029b3b580529354c5c245239999a7f92239e0c6d80174e31
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MDVjYzRkYTc0NTYwNTJmMTBlOWM1ZDU1YWRjODM2ODQ1ZjMxMGEzOA==
5
+ data.tar.gz: !binary |-
6
+ ZDFiNGFkOTM3NmZmZGYyMTEwZDc5YmI2NDNjYTMwNGMwNDg0ZDk4Yw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NDY3YmI4NjJiMTRjZDAxZmNjMWYxZTg2NGUxM2VhYzhkOWI0OThiZDA1MTdm
10
+ NjBjNTk0YjZmZWFhMjI1ZmUwMjJmMDI0ZmExNmU0OTE3MjM2OWNkMWNiNzkz
11
+ ZWMyNWNmOWJkMjMzZDhkODllMjdmMzVhZjc4MWQ2NTE5YTIwNGY=
12
+ data.tar.gz: !binary |-
13
+ ZWQ1NDRjOTljNTE3ZWY0NzNjMTNjNTM2NmUzYTE2NjE5YmRiNWY3NjkxZWYx
14
+ MDczNmViZTBlYjVjNjA2Mjg5Y2VjZDNjNGFkODI2NDU4MjE5Yjk3NTBmNjMy
15
+ OWZjODA0NGQ5ZmQ1OTFkM2U4ZjEzZGMwYTcyYmMxOWI3ZWYyMWU=
@@ -48,7 +48,7 @@ module FFWD
48
48
  e[:ttl] ||= @ttl if @ttl
49
49
  e[:tags] = FFWD.merge_sets @tags, e[:tags]
50
50
  e[:attributes] = FFWD.merge_hashes @attributes, e[:attributes]
51
- m[:value] = nil if m[:value] == Float::NAN
51
+ e[:value] = nil if (v = e[:value] and v.is_a?(Float) and v.nan?)
52
52
 
53
53
  @output.event Event.make(e)
54
54
  rescue => e
@@ -41,7 +41,7 @@ module FFWD
41
41
  m[:host] ||= @host if @host
42
42
  m[:tags] = FFWD.merge_sets @tags, m[:tags]
43
43
  m[:attributes] = FFWD.merge_hashes @attributes, m[:attributes]
44
- m[:value] = nil if m[:value] == Float::NAN
44
+ m[:value] = nil if (v = m[:value] and v.is_a?(Float) and v.nan?)
45
45
 
46
46
  @output.metric Metric.make(m)
47
47
  rescue => e
data/lib/ffwd/version.rb CHANGED
@@ -14,5 +14,5 @@
14
14
  # the License.
15
15
 
16
16
  module FFWD
17
- VERSION = "0.1.4"
17
+ VERSION = "0.1.5"
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffwd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John-John Tedro
@@ -9,62 +9,62 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-17 00:00:00.000000000 Z
12
+ date: 2014-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ! '>='
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ! '>='
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rspec
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ! '>='
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ! '>='
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec-mocks
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - ! '>='
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - ! '>='
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: autoversion
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - '>='
60
+ - - ! '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ! '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  description:
@@ -79,63 +79,63 @@ extra_rdoc_files: []
79
79
  files:
80
80
  - bin/fwc
81
81
  - bin/ffwd
82
- - lib/fwc.rb
83
82
  - lib/ffwd.rb
84
- - lib/ffwd/statistics.rb
85
- - lib/ffwd/processor.rb
83
+ - lib/em/all.rb
84
+ - lib/ffwd/processor/count.rb
85
+ - lib/ffwd/processor/histogram.rb
86
+ - lib/ffwd/processor/rate.rb
87
+ - lib/ffwd/event.rb
88
+ - lib/ffwd/plugin_channel.rb
89
+ - lib/ffwd/core/reporter.rb
90
+ - lib/ffwd/core/processor.rb
91
+ - lib/ffwd/core/emitter.rb
92
+ - lib/ffwd/core/interface.rb
93
+ - lib/ffwd/debug/monitor_session.rb
94
+ - lib/ffwd/debug/tcp.rb
95
+ - lib/ffwd/debug/connection.rb
96
+ - lib/ffwd/utils.rb
97
+ - lib/ffwd/reporter.rb
86
98
  - lib/ffwd/producing_client.rb
87
- - lib/ffwd/tunnel.rb
99
+ - lib/ffwd/processor.rb
100
+ - lib/ffwd/retrier.rb
101
+ - lib/ffwd/debug.rb
88
102
  - lib/ffwd/protocol.rb
103
+ - lib/ffwd/metric.rb
104
+ - lib/ffwd/core.rb
105
+ - lib/ffwd/statistics/collector.rb
106
+ - lib/ffwd/statistics/system_statistics.rb
107
+ - lib/ffwd/version.rb
108
+ - lib/ffwd/circular_buffer.rb
89
109
  - lib/ffwd/lifecycle.rb
90
- - lib/ffwd/debug/tcp.rb
91
- - lib/ffwd/debug/connection.rb
92
- - lib/ffwd/debug/monitor_session.rb
93
- - lib/ffwd/channel.rb
94
110
  - lib/ffwd/plugin/json.rb
95
111
  - lib/ffwd/plugin/log/writer.rb
96
112
  - lib/ffwd/plugin/log.rb
97
113
  - lib/ffwd/plugin/json/connection.rb
98
- - lib/ffwd/circular_buffer.rb
99
- - lib/ffwd/event.rb
100
- - lib/ffwd/statistics/system_statistics.rb
101
- - lib/ffwd/statistics/collector.rb
102
- - lib/ffwd/connection.rb
103
- - lib/ffwd/utils.rb
104
- - lib/ffwd/protocol/tcp.rb
114
+ - lib/ffwd/logging.rb
115
+ - lib/ffwd/schema.rb
105
116
  - lib/ffwd/protocol/tcp/bind.rb
106
117
  - lib/ffwd/protocol/tcp/plain_connect.rb
107
118
  - lib/ffwd/protocol/tcp/flushing_connect.rb
108
119
  - lib/ffwd/protocol/tcp/connection.rb
109
- - lib/ffwd/protocol/udp/bind.rb
110
- - lib/ffwd/protocol/udp/connect.rb
111
120
  - lib/ffwd/protocol/udp.rb
112
- - lib/ffwd/reporter.rb
121
+ - lib/ffwd/protocol/udp/connect.rb
122
+ - lib/ffwd/protocol/udp/bind.rb
123
+ - lib/ffwd/protocol/tcp.rb
124
+ - lib/ffwd/channel.rb
113
125
  - lib/ffwd/plugin_loader.rb
114
- - lib/ffwd/schema/spotify100.rb
115
126
  - lib/ffwd/schema/default.rb
116
- - lib/ffwd/metric_emitter.rb
117
- - lib/ffwd/schema.rb
127
+ - lib/ffwd/schema/spotify100.rb
128
+ - lib/ffwd/plugin.rb
118
129
  - lib/ffwd/event_emitter.rb
119
- - lib/ffwd/core/processor.rb
120
- - lib/ffwd/core/interface.rb
121
- - lib/ffwd/core/reporter.rb
122
- - lib/ffwd/core/emitter.rb
123
130
  - lib/ffwd/handler.rb
124
- - lib/ffwd/version.rb
125
- - lib/ffwd/core.rb
126
- - lib/ffwd/processor/rate.rb
127
- - lib/ffwd/processor/count.rb
128
- - lib/ffwd/processor/histogram.rb
129
- - lib/ffwd/debug.rb
130
- - lib/ffwd/retrier.rb
131
- - lib/ffwd/logging.rb
132
- - lib/ffwd/plugin_channel.rb
133
- - lib/ffwd/tunnel/tcp.rb
131
+ - lib/ffwd/tunnel.rb
132
+ - lib/ffwd/metric_emitter.rb
133
+ - lib/ffwd/statistics.rb
134
+ - lib/ffwd/connection.rb
134
135
  - lib/ffwd/tunnel/udp.rb
136
+ - lib/ffwd/tunnel/tcp.rb
135
137
  - lib/ffwd/tunnel/plugin.rb
136
- - lib/ffwd/plugin.rb
137
- - lib/ffwd/metric.rb
138
- - lib/em/all.rb
138
+ - lib/fwc.rb
139
139
  homepage: https://github.com/spotify/ffwd
140
140
  licenses:
141
141
  - Apache 2.0
@@ -146,12 +146,12 @@ require_paths:
146
146
  - lib
147
147
  required_ruby_version: !ruby/object:Gem::Requirement
148
148
  requirements:
149
- - - '>='
149
+ - - ! '>='
150
150
  - !ruby/object:Gem::Version
151
151
  version: '0'
152
152
  required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  requirements:
154
- - - '>='
154
+ - - ! '>='
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  requirements: []