ffwd 0.3.6 → 0.3.7

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: e5473edc3d1344a45a084ecb5b81b9e71349143d
4
- data.tar.gz: ba679cda9f2568ac8f1c3920bfaf5dd4324cf559
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NDAxMmI5NWEwMzNhOTJjNmUyZTJiNDc5MGNhM2I3NWY1NWIwMjI2MQ==
5
+ data.tar.gz: !binary |-
6
+ ZDFjMDgxMTcyNzdkYmVmYWUxMzZlNDdmZjY1ZjUxYWE4ZTA3YjQwYg==
5
7
  SHA512:
6
- metadata.gz: ff6cc949c801ee8cec986a5670eb8016c26f26c48c928bfbdf34a930f9e9363500fb622e97fd8ee6119ba0074233fd1adffb407b4ea413e425a34f886ca12c00
7
- data.tar.gz: 34449bb211b3b8da0b8272978c3a9f5db7661fcaed195326ef372ad95066912b1073a54a0ed949c94a7930d03fa0f054cb23febe24f989b071401fea04947883
8
+ metadata.gz: !binary |-
9
+ YjJjMTkyNzQ5YjMwMmI5YzZmNWM0ZTgzNDkyYzAxOTgxMzA3NmFjYzkzYzNj
10
+ ZTNjMWI4ZjkyYzdlZmNlMWRiMDEyM2Q3YzMyMjJhNGJlNjYyMWI2NWQ0OTQ0
11
+ ZjIxYWVhOTczOGQ5ODBiNTk3ZTcyZjgwMGRjNmI0MWEzN2VhYjQ=
12
+ data.tar.gz: !binary |-
13
+ MzllOTIxOGM5YjJiYjY1NDM4NDA2Zjc0NjBhMjhjY2EyMTAyMTFkY2QxNjg3
14
+ YTc2MTdjOWZlYTU4MjZhZjFiNjNlN2M4NGI4NWY3M2M4ZDk5YzI3Y2E3Mjhi
15
+ YzgwYjQ2YTcyNzI1ZGRmN2QwNzBhYTNiMWJhYzRiNWZjZTNlMTQ=
@@ -61,7 +61,7 @@ module FFWD::Plugin::JSON
61
61
  def receive_line data
62
62
  receive_json data
63
63
  rescue => e
64
- log.error "Failed to receive JSON: #{data.inspect}: #{e}"
64
+ log.error "Failed to receive JSON: #{data}: #{e}"
65
65
  end
66
66
  end
67
67
 
@@ -75,7 +75,7 @@ module FFWD::Plugin::JSON
75
75
  def receive_data data
76
76
  receive_json data
77
77
  rescue => e
78
- log.error "Failed to receive JSON: #{data.inspect}: #{e}"
78
+ log.error "Failed to receive JSON: #{data}: #{e}"
79
79
  end
80
80
  end
81
81
 
@@ -67,20 +67,25 @@ module FFWD::Plugin::JSON
67
67
  end
68
68
 
69
69
  def read_tags d, source
70
- return if (tags = d["tags"]).nil?
70
+ return if (tags = source["tags"]).nil?
71
+
72
+ unless tags.is_a? Array
73
+ raise "'tags' must be an array"
74
+ end
75
+
71
76
  d[:tags] = tags.to_set
72
77
  end
73
78
 
74
79
  def read_time d, source
75
- return if (time = d["time"]).nil?
80
+ return if (time = source["time"]).nil?
76
81
  d[:time] = Time.at time
77
82
  end
78
83
 
79
84
  def read_metric data
80
85
  d = {}
81
86
 
82
- read_tags d, data["tags"]
83
- read_time d, data["time"]
87
+ read_tags d, data
88
+ read_time d, data
84
89
 
85
90
  METRIC_FIELDS.each do |from, to|
86
91
  next if (v = data[from]).nil?
@@ -93,8 +98,8 @@ module FFWD::Plugin::JSON
93
98
  def read_event data
94
99
  d = {}
95
100
 
96
- read_tags d, data["tags"]
97
- read_time d, data["time"]
101
+ read_tags d, data
102
+ read_time d, data
98
103
 
99
104
  EVENT_FIELDS.each do |from, to|
100
105
  next if (v = data[from]).nil?
@@ -14,5 +14,5 @@
14
14
  # the License.
15
15
 
16
16
  module FFWD
17
- VERSION = "0.3.6"
17
+ VERSION = "0.3.7"
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.3.6
4
+ version: 0.3.7
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-12-11 00:00:00.000000000 Z
12
+ date: 2015-01-17 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:
@@ -77,66 +77,66 @@ executables:
77
77
  extensions: []
78
78
  extra_rdoc_files: []
79
79
  files:
80
- - bin/fwc
81
80
  - bin/ffwd
82
- - lib/fwc.rb
81
+ - bin/fwc
82
+ - lib/em/all.rb
83
+ - lib/em/protocols/frame_object_protocol.rb
83
84
  - lib/ffwd.rb
84
- - lib/ffwd/processor.rb
85
- - lib/ffwd/producing_client.rb
86
- - lib/ffwd/protocol.rb
87
- - lib/ffwd/lifecycle.rb
88
- - lib/ffwd/debug/tcp.rb
85
+ - lib/ffwd/channel.rb
86
+ - lib/ffwd/connection.rb
87
+ - lib/ffwd/core.rb
88
+ - lib/ffwd/core/emitter.rb
89
+ - lib/ffwd/core/interface.rb
90
+ - lib/ffwd/core/processor.rb
91
+ - lib/ffwd/core/reporter.rb
92
+ - lib/ffwd/debug.rb
89
93
  - lib/ffwd/debug/connection.rb
90
94
  - lib/ffwd/debug/monitor_session.rb
91
- - lib/ffwd/channel.rb
92
- - lib/ffwd/test/protocol.rb
95
+ - lib/ffwd/debug/tcp.rb
96
+ - lib/ffwd/event.rb
97
+ - lib/ffwd/event_emitter.rb
98
+ - lib/ffwd/flushing_output.rb
99
+ - lib/ffwd/flushing_output_hook.rb
100
+ - lib/ffwd/handler.rb
101
+ - lib/ffwd/lifecycle.rb
102
+ - lib/ffwd/logging.rb
103
+ - lib/ffwd/metric.rb
104
+ - lib/ffwd/metric_emitter.rb
105
+ - lib/ffwd/plugin.rb
93
106
  - lib/ffwd/plugin/json.rb
94
- - lib/ffwd/plugin/log/writer.rb
95
- - lib/ffwd/plugin/log.rb
96
107
  - lib/ffwd/plugin/json/connection.rb
97
- - lib/ffwd/event.rb
98
- - lib/ffwd/statistics/system_statistics.rb
99
- - lib/ffwd/statistics/collector.rb
100
- - lib/ffwd/connection.rb
101
- - lib/ffwd/utils.rb
108
+ - lib/ffwd/plugin/log.rb
109
+ - lib/ffwd/plugin/log/writer.rb
110
+ - lib/ffwd/plugin_channel.rb
111
+ - lib/ffwd/plugin_loader.rb
112
+ - lib/ffwd/processor.rb
113
+ - lib/ffwd/processor/count.rb
114
+ - lib/ffwd/processor/histogram.rb
115
+ - lib/ffwd/processor/rate.rb
116
+ - lib/ffwd/producing_client.rb
117
+ - lib/ffwd/protocol.rb
102
118
  - lib/ffwd/protocol/tcp.rb
103
119
  - lib/ffwd/protocol/tcp/bind.rb
104
- - lib/ffwd/protocol/tcp/plain_connect.rb
105
- - lib/ffwd/protocol/tcp/flushing_connect.rb
106
120
  - lib/ffwd/protocol/tcp/connection.rb
121
+ - lib/ffwd/protocol/tcp/flushing_connect.rb
122
+ - lib/ffwd/protocol/tcp/plain_connect.rb
123
+ - lib/ffwd/protocol/udp.rb
107
124
  - lib/ffwd/protocol/udp/bind.rb
108
125
  - lib/ffwd/protocol/udp/connect.rb
109
- - lib/ffwd/protocol/udp.rb
110
126
  - lib/ffwd/reporter.rb
111
- - lib/ffwd/plugin_loader.rb
112
- - lib/ffwd/schema/spotify100.rb
113
- - lib/ffwd/schema/default.rb
114
- - lib/ffwd/metric_emitter.rb
115
- - lib/ffwd/schema.rb
116
- - lib/ffwd/event_emitter.rb
117
- - lib/ffwd/core/processor.rb
118
- - lib/ffwd/core/interface.rb
119
- - lib/ffwd/core/reporter.rb
120
- - lib/ffwd/core/emitter.rb
121
- - lib/ffwd/handler.rb
122
- - lib/ffwd/flushing_output.rb
123
- - lib/ffwd/flushing_output_hook.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
127
  - lib/ffwd/retrier.rb
131
- - lib/ffwd/logging.rb
132
- - lib/ffwd/plugin_channel.rb
128
+ - lib/ffwd/schema.rb
129
+ - lib/ffwd/schema/default.rb
130
+ - lib/ffwd/schema/spotify100.rb
131
+ - lib/ffwd/statistics/collector.rb
132
+ - lib/ffwd/statistics/system_statistics.rb
133
+ - lib/ffwd/test/protocol.rb
134
+ - lib/ffwd/tunnel/plugin.rb
133
135
  - lib/ffwd/tunnel/tcp.rb
134
136
  - lib/ffwd/tunnel/udp.rb
135
- - lib/ffwd/tunnel/plugin.rb
136
- - lib/ffwd/plugin.rb
137
- - lib/ffwd/metric.rb
138
- - lib/em/protocols/frame_object_protocol.rb
139
- - lib/em/all.rb
137
+ - lib/ffwd/utils.rb
138
+ - lib/ffwd/version.rb
139
+ - lib/fwc.rb
140
140
  homepage: https://github.com/spotify/ffwd
141
141
  licenses:
142
142
  - Apache 2.0
@@ -147,17 +147,17 @@ require_paths:
147
147
  - lib
148
148
  required_ruby_version: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ! '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  requirements:
155
- - - '>='
155
+ - - ! '>='
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
158
  requirements: []
159
159
  rubyforge_project:
160
- rubygems_version: 2.0.14
160
+ rubygems_version: 2.2.2
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: Core framework for the FastForward Daemon.