fluent-plugin-websocket 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/fluent-plugin-websocket.gemspec +2 -1
- data/lib/fluent/plugin/out_websocket.rb +2 -1
- metadata +18 -2
@@ -3,7 +3,7 @@ lib = File.expand_path('../lib', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = "fluent-plugin-websocket"
|
6
|
-
gem.version = "0.1.
|
6
|
+
gem.version = "0.1.4"
|
7
7
|
gem.authors = ["IZAWA Tetsu (@moccos)"]
|
8
8
|
gem.email = ["tt.izawa@gmail.com"]
|
9
9
|
gem.homepage = "https://github.com/moccos/fluent-plugin-websocket"
|
@@ -20,6 +20,7 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.add_development_dependency "fluentd"
|
21
21
|
gem.add_development_dependency "websocket-eventmachine-client"
|
22
22
|
gem.add_development_dependency "msgpack"
|
23
|
+
gem.add_runtime_dependency "yajl"
|
23
24
|
gem.add_runtime_dependency "fluentd"
|
24
25
|
gem.add_runtime_dependency "em-websocket"
|
25
26
|
end
|
@@ -13,6 +13,7 @@
|
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
15
|
require 'em-websocket'
|
16
|
+
require 'yajl'
|
16
17
|
require 'thread'
|
17
18
|
|
18
19
|
module Fluent
|
@@ -72,7 +73,7 @@ module Fluent
|
|
72
73
|
data = [record]
|
73
74
|
if (@add_time) then data.unshift(time) end
|
74
75
|
if (@add_tag) then data.unshift(tag) end
|
75
|
-
output = @use_msgpack ? data.to_msgpack : data
|
76
|
+
output = @use_msgpack ? data.to_msgpack : Yajl::Encoder.encode( data )
|
76
77
|
$lock.synchronize do
|
77
78
|
$channel.push output
|
78
79
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-websocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
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-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -75,6 +75,22 @@ dependencies:
|
|
75
75
|
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: yajl
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
78
94
|
- !ruby/object:Gem::Dependency
|
79
95
|
name: fluentd
|
80
96
|
requirement: !ruby/object:Gem::Requirement
|