fluent-plugin-mongo 0.7.9 → 0.7.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88d727094511a216ed815df1e989e1cf31f95346
4
- data.tar.gz: 96b8a410b82e0b8fa3c2717660c540e1cc1df3a7
3
+ metadata.gz: c8bc7989f6becb39ffa820ae11bfed1c1ca4e0cc
4
+ data.tar.gz: 593a678c7822803ee8c1430415dd9f2d0d3df0ab
5
5
  SHA512:
6
- metadata.gz: a333b199212a6b3e04e01e2455ca248fb60e3509e284cc7d1c10088c1c1b57e14414b5422bf6dde1f093cef2c1dc65391db0007c6acae190a220eea9657a7a7f
7
- data.tar.gz: 102b6c57a4751ec760a200fe2f753617d15f8fe08e82d54e40e2c3158bed6bb26a3ba43daceb71b77b2dee49dc66abb091fbbf6357d70a50b71bb06fb8c2f82f
6
+ metadata.gz: 18f24adca71b2f816d266045786aef27c6f73d6868d804c3dcdd54e770e441124c4cfd3f30bf123a66cc4475196db39df2eb6a6056a0c71789c71554af323ac3
7
+ data.tar.gz: fadd2695bcd18e93932b0fbdc6f0713abffd9c85af177573332e82c9599914cf0e7cad7f10f72d1fd368ebb5c5881ae8b517ee49173cfc34ac1e0e933ef0666a
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Release 0.7.10 - 2015/05/28
2
+
3
+ * Add SSL authentication options
4
+
5
+
1
6
  Release 0.7.9 - 2015/04/01
2
7
 
3
8
  * Force to use mongo gem v1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.9
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
@@ -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.9
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-04-01 00:00:00.000000000 Z
11
+ date: 2015-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd