fluent-plugin-mongo 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0ad7f90a08c0090846884b95f124df0b6257b420
4
- data.tar.gz: '094e060574195842fd49c42d5b0fc433c6d16970'
2
+ SHA256:
3
+ metadata.gz: 59aec9095373feab0710cc9530a07a2eade9a469aaed6d8833fe1f824bfef031
4
+ data.tar.gz: d27f35fc750310cd15321c4449093236e1d904045795824317a55661ae3036d6
5
5
  SHA512:
6
- metadata.gz: 508cf655a0807b681f0e7e0229c510d023dd5f0ffe55c98a80d397e9b92caa97566e31ce7b7250900973fc43c4956e51f84f76b9d0a4d48607d050b0ec3fdb4a
7
- data.tar.gz: ab536cea004d73000c19dc6d743c224f955d30ab6cfd14f232f046e6cdaba775a2adb446ad70c00b4b6cd341992e91f06e5aac1aadeb7cd02eedd05ca977f170
6
+ metadata.gz: e049cf6d4ab57e98bccd62b05d55d706dca961012f2f4c650d4d5aa5c05b63a62ac119f601a45b869016fd5b83d48baf43e6f2e278c0b306962dcefe005645e9
7
+ data.tar.gz: 46430cdee1f0e92e9f8cc1313debc2721f930fbb3c41d71295b8fcccb17381628ba492c99ebdc5b9d1bcafe0ec18c65c0fa0ab0da8f07a5b0ddd61268d8c0781
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Release 1.1.1 - 2018/05/17
2
+
3
+ * out_mongo/out_mongo_replset: Use built-in Output#format to fix EventTime serialization
4
+
5
+
1
6
  Release 1.1.0 - 2018/01/18
2
7
 
3
8
  * in_mongo: Add batch_size parameter
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -163,18 +163,6 @@ module Fluent::Plugin
163
163
  super
164
164
  end
165
165
 
166
- def emit(tag, es, chain)
167
- if @tag_mapped
168
- super(tag, es, chain, tag)
169
- else
170
- super(tag, es, chain)
171
- end
172
- end
173
-
174
- def format(tag, time, record)
175
- [time, record].to_msgpack
176
- end
177
-
178
166
  def formatted_to_msgpack_binary
179
167
  true
180
168
  end
@@ -29,10 +29,6 @@ module Fluent::Plugin
29
29
  log.debug "Setup replica set configuration: #{conf['replica_set']}"
30
30
  end
31
31
 
32
- def format(tag, time, record)
33
- super
34
- end
35
-
36
32
  def write(chunk)
37
33
  super
38
34
  end
@@ -171,19 +171,6 @@ class MongoOutputTest < ::Test::Unit::TestCase
171
171
  time
172
172
  end
173
173
 
174
- def test_format
175
- d = create_driver
176
-
177
- time = event_time("2011-01-02 13:14:15 UTC")
178
- d.run(default_tag: 'test') do
179
- d.feed(time, {'a' => 1})
180
- d.feed(time, {'a' => 2})
181
- end
182
- assert_equal([time, {'a' => 1}].to_msgpack, d.formatted[0])
183
- assert_equal([time, {'a' => 2}].to_msgpack, d.formatted[1])
184
- assert_equal(2, d.formatted.size)
185
- end
186
-
187
174
  def test_write
188
175
  d = create_driver
189
176
  d.run(default_tag: 'test') do
@@ -120,19 +120,6 @@ class MongoReplsetOutputTest < ::Test::Unit::TestCase
120
120
  time
121
121
  end
122
122
 
123
- def test_format
124
- d = create_driver
125
-
126
- time = event_time("2011-01-02 13:14:15 UTC")
127
- d.run(default_tag: 'test') do
128
- d.feed(time, {'a' => 1})
129
- d.feed(time, {'a' => 2})
130
- end
131
- assert_equal([time, {'a' => 1}].to_msgpack, d.formatted[0])
132
- assert_equal([time, {'a' => 2}].to_msgpack, d.formatted[1])
133
- assert_equal(2, d.formatted.size)
134
- end
135
-
136
123
  def test_write
137
124
  d = create_driver
138
125
  d.run(default_tag: 'test') do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-mongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Nakagawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-19 00:00:00.000000000 Z
11
+ date: 2018-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  requirements: []
162
162
  rubyforge_project:
163
- rubygems_version: 2.6.13
163
+ rubygems_version: 2.7.6
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: MongoDB plugin for Fluentd