fluent-plugin-mongo 0.7.9 → 0.7.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +5 -0
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_mongo.rb +14 -0
- data/test/plugin/out_mongo.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8bc7989f6becb39ffa820ae11bfed1c1ca4e0cc
|
4
|
+
data.tar.gz: 593a678c7822803ee8c1430415dd9f2d0d3df0ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18f24adca71b2f816d266045786aef27c6f73d6868d804c3dcdd54e770e441124c4cfd3f30bf123a66cc4475196db39df2eb6a6056a0c71789c71554af323ac3
|
7
|
+
data.tar.gz: fadd2695bcd18e93932b0fbdc6f0713abffd9c85af177573332e82c9599914cf0e7cad7f10f72d1fd368ebb5c5881ae8b517ee49173cfc34ac1e0e933ef0666a
|
data/ChangeLog
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.10
|
@@ -29,6 +29,11 @@ module Fluent
|
|
29
29
|
|
30
30
|
# SSL connection
|
31
31
|
config_param :ssl, :bool, :default => false
|
32
|
+
config_param :ssl_cert, :string, :default => nil
|
33
|
+
config_param :ssl_key, :string, :default => nil
|
34
|
+
config_param :ssl_key_pass_phrase, :string, :default => nil
|
35
|
+
config_param :ssl_verify, :bool, :default => false
|
36
|
+
config_param :ssl_ca_cert, :string, :default => nil
|
32
37
|
|
33
38
|
attr_reader :collection_options, :connection_options
|
34
39
|
|
@@ -72,8 +77,17 @@ module Fluent
|
|
72
77
|
|
73
78
|
@connection_options[:w] = @write_concern unless @write_concern.nil?
|
74
79
|
@connection_options[:j] = @journaled
|
80
|
+
|
75
81
|
@connection_options[:ssl] = @ssl
|
76
82
|
|
83
|
+
if @ssl
|
84
|
+
@connection_options[:ssl_cert] = @ssl_cert
|
85
|
+
@connection_options[:ssl_key] = @ssl_key
|
86
|
+
@connection_options[:ssl_key_pass_phrase] = @ssl_key_pass_phrase
|
87
|
+
@connection_options[:ssl_verify] = @ssl_verify
|
88
|
+
@connection_options[:ssl_ca_cert] = @ssl_ca_cert
|
89
|
+
end
|
90
|
+
|
77
91
|
# MongoDB uses BSON's Date for time.
|
78
92
|
def @timef.format_nocache(time)
|
79
93
|
time
|
data/test/plugin/out_mongo.rb
CHANGED
@@ -79,7 +79,7 @@ class MongoOutputTest < Test::Unit::TestCase
|
|
79
79
|
ssl true
|
80
80
|
])
|
81
81
|
|
82
|
-
assert_equal({:ssl => true, :j => false}, d.instance.connection_options)
|
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)
|
83
83
|
end
|
84
84
|
|
85
85
|
def test_format
|
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.10
|
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-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|