fluent-plugin-mongo 0.7.10 → 0.7.11
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.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/ChangeLog +7 -0
- data/VERSION +1 -1
- data/fluent-plugin-mongo.gemspec +3 -1
- data/lib/fluent/plugin/in_mongo_tail.rb +1 -1
- data/lib/fluent/plugin/mongo_util.rb +1 -1
- data/lib/fluent/plugin/out_mongo.rb +3 -1
- data/test/plugin/out_mongo.rb +5 -5
- data/test/plugin/out_mongo_tag_mapped.rb +1 -1
- data/test/test_helper.rb +0 -3
- metadata +21 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db2edd199b7056e1a35d3b791ac6a393d7cba246
|
4
|
+
data.tar.gz: 13d1f6785aa437885ffb5f38cbfb85aa58e222ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb7afa69474f59e1c47b173ef7d34bb0b9af922731887039b9180cec9ff5aca5d90294e02dde44b2bfdc5af83f7799e99a0e59ae364570338afa2bcf7e07167f
|
7
|
+
data.tar.gz: 1c09da93b1179ee4dd55a5c7cefcf718e7a04309eab2049ad91bba3aec81570d2edd97cbf30962e9b066d0d58135350e9031730fc0f19fa50eae3a33a12cd1f7
|
data/.travis.yml
CHANGED
data/ChangeLog
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.11
|
data/fluent-plugin-mongo.gemspec
CHANGED
@@ -6,6 +6,7 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.description = "MongoDB plugin for Fluentd"
|
7
7
|
gem.homepage = "https://github.com/fluent/fluent-plugin-mongo"
|
8
8
|
gem.summary = gem.description
|
9
|
+
gem.licenses = ["Apache-2.0"]
|
9
10
|
gem.version = File.read("VERSION").strip
|
10
11
|
gem.authors = ["Masahiro Nakagawa"]
|
11
12
|
gem.email = "repeatedly@gmail.com"
|
@@ -16,9 +17,10 @@ Gem::Specification.new do |gem|
|
|
16
17
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
18
|
gem.require_paths = ['lib']
|
18
19
|
|
19
|
-
gem.add_dependency "fluentd", [">= 0.10.
|
20
|
+
gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
|
20
21
|
gem.add_dependency "mongo", "~> 1.9"
|
21
22
|
gem.add_development_dependency "rake", ">= 0.9.2"
|
22
23
|
gem.add_development_dependency "simplecov", ">= 0.5.4"
|
23
24
|
gem.add_development_dependency "rr", ">= 1.0.0"
|
25
|
+
gem.add_development_dependency "test-unit", ">= 3.0.0"
|
24
26
|
end
|
@@ -20,6 +20,7 @@ module Fluent
|
|
20
20
|
config_param :exclude_broken_fields, :string, :default => nil
|
21
21
|
config_param :write_concern, :integer, :default => nil
|
22
22
|
config_param :journaled, :bool, :default => false
|
23
|
+
config_param :socket_pool_size, :integer, :default => 1
|
23
24
|
config_param :replace_dot_in_key_with, :string, :default => nil
|
24
25
|
config_param :replace_dollar_in_key_with, :string, :default => nil
|
25
26
|
|
@@ -31,7 +32,7 @@ module Fluent
|
|
31
32
|
config_param :ssl, :bool, :default => false
|
32
33
|
config_param :ssl_cert, :string, :default => nil
|
33
34
|
config_param :ssl_key, :string, :default => nil
|
34
|
-
config_param :ssl_key_pass_phrase, :string, :default => nil
|
35
|
+
config_param :ssl_key_pass_phrase, :string, :default => nil, :secret => true
|
35
36
|
config_param :ssl_verify, :bool, :default => false
|
36
37
|
config_param :ssl_ca_cert, :string, :default => nil
|
37
38
|
|
@@ -77,6 +78,7 @@ module Fluent
|
|
77
78
|
|
78
79
|
@connection_options[:w] = @write_concern unless @write_concern.nil?
|
79
80
|
@connection_options[:j] = @journaled
|
81
|
+
@connection_options[:pool_size] = @socket_pool_size
|
80
82
|
|
81
83
|
@connection_options[:ssl] = @ssl
|
82
84
|
|
data/test/plugin/out_mongo.rb
CHANGED
@@ -52,7 +52,7 @@ class MongoOutputTest < Test::Unit::TestCase
|
|
52
52
|
assert_equal('localhost', d.instance.host)
|
53
53
|
assert_equal(@@mongod_port, d.instance.port)
|
54
54
|
assert_equal({:capped => true, :size => 100}, d.instance.collection_options)
|
55
|
-
assert_equal({:ssl => false, :j => false}, d.instance.connection_options)
|
55
|
+
assert_equal({:ssl => false, :pool_size => 1, :j => false}, d.instance.connection_options)
|
56
56
|
# buffer_chunk_limit moved from configure to start
|
57
57
|
# I will move this test to correct space after BufferedOutputTestDriver supports start method invoking
|
58
58
|
# assert_equal(Fluent::MongoOutput::LIMIT_BEFORE_v1_8, d.instance.instance_variable_get(:@buffer).buffer_chunk_limit)
|
@@ -63,7 +63,7 @@ class MongoOutputTest < Test::Unit::TestCase
|
|
63
63
|
write_concern 2
|
64
64
|
])
|
65
65
|
|
66
|
-
assert_equal({:w => 2, :ssl => false, :j => false}, d.instance.connection_options)
|
66
|
+
assert_equal({:w => 2, :pool_size => 1, :ssl => false, :j => false}, d.instance.connection_options)
|
67
67
|
end
|
68
68
|
|
69
69
|
def test_configure_with_journaled
|
@@ -71,7 +71,7 @@ class MongoOutputTest < Test::Unit::TestCase
|
|
71
71
|
journaled true
|
72
72
|
])
|
73
73
|
|
74
|
-
assert_equal({:ssl => false, :j => true}, d.instance.connection_options)
|
74
|
+
assert_equal({:ssl => false, :pool_size => 1, :j => true}, d.instance.connection_options)
|
75
75
|
end
|
76
76
|
|
77
77
|
def test_configure_with_ssl
|
@@ -79,7 +79,7 @@ class MongoOutputTest < Test::Unit::TestCase
|
|
79
79
|
ssl true
|
80
80
|
])
|
81
81
|
|
82
|
-
assert_equal({:ssl => true, :j => false, :ssl_cert=>nil, :ssl_key=>nil, :ssl_key_pass_phrase=>nil, :ssl_verify=>false, :ssl_ca_cert=>nil}, d.instance.connection_options)
|
82
|
+
assert_equal({:ssl => true, :pool_size => 1, :j => false, :ssl_cert=>nil, :ssl_key=>nil, :ssl_key_pass_phrase=>nil, :ssl_verify=>false, :ssl_ca_cert=>nil}, d.instance.connection_options)
|
83
83
|
end
|
84
84
|
|
85
85
|
def test_format
|
@@ -273,7 +273,7 @@ class MongoReplOutputTest < MongoOutputTest
|
|
273
273
|
assert_equal(build_seeds(3), d.instance.nodes)
|
274
274
|
assert_equal(45, d.instance.num_retries)
|
275
275
|
assert_equal({:capped => true, :size => 100}, d.instance.collection_options)
|
276
|
-
assert_equal({:ssl => false, :j => false}, d.instance.connection_options)
|
276
|
+
assert_equal({:ssl => false, :pool_size => 1, :j => false}, d.instance.connection_options)
|
277
277
|
end
|
278
278
|
end
|
279
279
|
|
@@ -50,7 +50,7 @@ class MongoTagCollectionTest < Test::Unit::TestCase
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def test_write
|
53
|
-
|
53
|
+
omit('BufferedOutputTestDriver should support emit arguments(chain and key)')
|
54
54
|
|
55
55
|
d = create_driver(CONFIG)
|
56
56
|
d.tag = 'mytag'
|
data/test/test_helper.rb
CHANGED
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: 0.7.
|
4
|
+
version: 0.7.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masahiro Nakagawa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.10.
|
19
|
+
version: 0.10.58
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '2'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.10.
|
29
|
+
version: 0.10.58
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2'
|
@@ -86,6 +86,20 @@ dependencies:
|
|
86
86
|
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: 1.0.0
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: test-unit
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: 3.0.0
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 3.0.0
|
89
103
|
description: MongoDB plugin for Fluentd
|
90
104
|
email: repeatedly@gmail.com
|
91
105
|
executables:
|
@@ -116,7 +130,8 @@ files:
|
|
116
130
|
- test/tools/repl_set_manager.rb
|
117
131
|
- test/tools/rs_test_helper.rb
|
118
132
|
homepage: https://github.com/fluent/fluent-plugin-mongo
|
119
|
-
licenses:
|
133
|
+
licenses:
|
134
|
+
- Apache-2.0
|
120
135
|
metadata: {}
|
121
136
|
post_install_message:
|
122
137
|
rdoc_options: []
|
@@ -134,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
149
|
version: '0'
|
135
150
|
requirements: []
|
136
151
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.
|
152
|
+
rubygems_version: 2.4.5.1
|
138
153
|
signing_key:
|
139
154
|
specification_version: 4
|
140
155
|
summary: MongoDB plugin for Fluentd
|