fluent-plugin-sakuraio 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/fluent-plugin-sakuraio.gemspec +1 -1
- data/lib/fluent/plugin/in_sakuraio.rb +6 -6
- data/lib/fluent/plugin/out_sakuraio.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50b1e611db1c8377ed1c39e56884cb3b55b5d41b
|
4
|
+
data.tar.gz: 494473e39c780e5ee962454434e75c1a89dec39a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 470f6b457b6af9f5901602f01d340d115b6a8d65fdcfba9fc843e6637292d5cdc3a73623d88ff3de1bf506816585766b293f38310901fdc2c1f935714125f669
|
7
|
+
data.tar.gz: d35cf5ca23b03a4f02da92a2240f791fc673fedf12ff2b2b5876dd0f7cbd38b0cfe7810111bf157c3cccf4749d0ace00f15d83ef53900d3a0cccf54e6b2b3f22
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v0.1.0](https://github.com/sakuraio/fluent-plugin-sakuraio/tree/v0.1.0) (2017-11-04)
|
4
|
+
[Full Changelog](https://github.com/sakuraio/fluent-plugin-sakuraio/compare/v0.0.7...v0.1.0)
|
5
|
+
|
3
6
|
## [v0.0.7](https://github.com/sakuraio/fluent-plugin-sakuraio/tree/v0.0.7) (2017-11-03)
|
4
7
|
[Full Changelog](https://github.com/sakuraio/fluent-plugin-sakuraio/compare/v0.0.6...v0.0.7)
|
5
8
|
|
@@ -14,7 +14,6 @@ module Fluent::Plugin
|
|
14
14
|
def configure(conf)
|
15
15
|
super
|
16
16
|
|
17
|
-
@client = Faye::WebSocket::Client.new(@url)
|
18
17
|
@time_parser = Fluent::TimeParser.new(nil)
|
19
18
|
end
|
20
19
|
|
@@ -39,12 +38,13 @@ module Fluent::Plugin
|
|
39
38
|
end
|
40
39
|
|
41
40
|
def run
|
41
|
+
client = Faye::WebSocket::Client.new(@url)
|
42
42
|
EM.next_tick do
|
43
|
-
|
43
|
+
client.on :open do
|
44
44
|
log.info "sakuraio: starting websocket connection for #{@url}."
|
45
45
|
end
|
46
46
|
|
47
|
-
|
47
|
+
client.on :message do |event|
|
48
48
|
log.debug "sakuraio: received message #{event.data}"
|
49
49
|
records = parse(event.data)
|
50
50
|
unless records.empty?
|
@@ -54,12 +54,12 @@ module Fluent::Plugin
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
-
|
57
|
+
client.on :error do |event|
|
58
58
|
log.warn "sakuraio: #{event.message}"
|
59
59
|
end
|
60
60
|
|
61
|
-
|
62
|
-
|
61
|
+
client.on :close do
|
62
|
+
client = nil
|
63
63
|
end
|
64
64
|
end
|
65
65
|
end
|