fluent-plugin-couch 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_couch.rb +7 -6
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
@@ -40,7 +40,12 @@ end
|
|
40
40
|
|
41
41
|
module Fluent
|
42
42
|
class CouchOutput < BufferedOutput
|
43
|
+
|
44
|
+
include SetTagKeyMixin
|
45
|
+
config_set_default :include_tag_key, false
|
46
|
+
|
43
47
|
include SetTimeKeyMixin
|
48
|
+
config_set_default :include_time_key, true
|
44
49
|
|
45
50
|
Fluent::Plugin.register_output('couch', self)
|
46
51
|
|
@@ -75,12 +80,8 @@ module Fluent
|
|
75
80
|
|
76
81
|
def write(chunk)
|
77
82
|
records = []
|
78
|
-
chunk.
|
79
|
-
|
80
|
-
MessagePack::Unpacker.new(io).each { |record| records << record }
|
81
|
-
rescue EOFError
|
82
|
-
# EOFError always occured when reached end of chunk.
|
83
|
-
end
|
83
|
+
chunk.msgpack_each {|record|
|
84
|
+
records << record
|
84
85
|
}
|
85
86
|
#TODO: bulk insert
|
86
87
|
for record in records
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-couch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-10-16 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
16
|
-
requirement: &
|
16
|
+
requirement: &70252805274960 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 0.10.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70252805274960
|
25
25
|
description:
|
26
26
|
email: ixixizko@gmail.com
|
27
27
|
executables: []
|