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 +5 -5
- data/ChangeLog +5 -0
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_mongo.rb +0 -12
- data/lib/fluent/plugin/out_mongo_replset.rb +0 -4
- data/test/plugin/test_out_mongo.rb +0 -13
- data/test/plugin/test_out_mongo_replset.rb +0 -13
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 59aec9095373feab0710cc9530a07a2eade9a469aaed6d8833fe1f824bfef031
|
4
|
+
data.tar.gz: d27f35fc750310cd15321c4449093236e1d904045795824317a55661ae3036d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e049cf6d4ab57e98bccd62b05d55d706dca961012f2f4c650d4d5aa5c05b63a62ac119f601a45b869016fd5b83d48baf43e6f2e278c0b306962dcefe005645e9
|
7
|
+
data.tar.gz: 46430cdee1f0e92e9f8cc1313debc2721f930fbb3c41d71295b8fcccb17381628ba492c99ebdc5b9d1bcafe0ec18c65c0fa0ab0da8f07a5b0ddd61268d8c0781
|
data/ChangeLog
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
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
|
@@ -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.
|
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-
|
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
|
163
|
+
rubygems_version: 2.7.6
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: MongoDB plugin for Fluentd
|