fluent-plugin-couch 0.1.5 → 0.2.0

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.
data/README.rdoc CHANGED
@@ -25,8 +25,6 @@ Store fluent-event as CouchDB Document to CouchDB database.
25
25
  </match>
26
26
 
27
27
  == TODO
28
- - Bulk Insert
29
-
30
28
 
31
29
  === More configuration
32
30
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.2.0
@@ -80,13 +80,12 @@ module Fluent
80
80
 
81
81
  def write(chunk)
82
82
  records = []
83
- chunk.msgpack_each {|record|
84
- records << record
85
- }
86
- #TODO: bulk insert
87
- for record in records
88
- @couch.post(@database,record.to_json)
89
- end
83
+ chunk.msgpack_each {|record| records << record }
84
+ @couch.post(@database+'/_bulk_docs', {"all_or_nothing"=>true, "docs"=>records}.to_json)
85
+
86
+ #for record in records
87
+ # @couch.post(@database,record.to_json)
88
+ #end
90
89
  end
91
90
  end
92
91
  end
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.5
4
+ version: 0.2.0
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: &70252805274960 !ruby/object:Gem::Requirement
16
+ requirement: &70156152291940 !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: *70252805274960
24
+ version_requirements: *70156152291940
25
25
  description:
26
26
  email: ixixizko@gmail.com
27
27
  executables: []