fluent-plugin-mongo 0.7.10 → 0.7.11

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
2
  SHA1:
3
- metadata.gz: c8bc7989f6becb39ffa820ae11bfed1c1ca4e0cc
4
- data.tar.gz: 593a678c7822803ee8c1430415dd9f2d0d3df0ab
3
+ metadata.gz: db2edd199b7056e1a35d3b791ac6a393d7cba246
4
+ data.tar.gz: 13d1f6785aa437885ffb5f38cbfb85aa58e222ba
5
5
  SHA512:
6
- metadata.gz: 18f24adca71b2f816d266045786aef27c6f73d6868d804c3dcdd54e770e441124c4cfd3f30bf123a66cc4475196db39df2eb6a6056a0c71789c71554af323ac3
7
- data.tar.gz: fadd2695bcd18e93932b0fbdc6f0713abffd9c85af177573332e82c9599914cf0e7cad7f10f72d1fd368ebb5c5881ae8b517ee49173cfc34ac1e0e933ef0666a
6
+ metadata.gz: cb7afa69474f59e1c47b173ef7d34bb0b9af922731887039b9180cec9ff5aca5d90294e02dde44b2bfdc5af83f7799e99a0e59ae364570338afa2bcf7e07167f
7
+ data.tar.gz: 1c09da93b1179ee4dd55a5c7cefcf718e7a04309eab2049ad91bba3aec81570d2edd97cbf30962e9b066d0d58135350e9031730fc0f19fa50eae3a33a12cd1f7
data/.travis.yml CHANGED
@@ -2,6 +2,7 @@ rvm:
2
2
  - 1.9.3
3
3
  - 2.0.0
4
4
  - 2.1
5
+ - 2.2
5
6
  - rbx
6
7
 
7
8
  before_script:
data/ChangeLog CHANGED
@@ -1,3 +1,10 @@
1
+ Release 0.7.11 - 2015/11/26
2
+
3
+ * Add secret option to related parameters
4
+ * Support label in input plugin
5
+ * Add socket_pool_size parameter
6
+
7
+
1
8
  Release 0.7.10 - 2015/05/28
2
9
 
3
10
  * Add SSL authentication options
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.10
1
+ 0.7.11
@@ -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.9", "< 2"]
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
@@ -161,7 +161,7 @@ module Fluent
161
161
  end
162
162
 
163
163
  # Should use MultiEventStream?
164
- Engine.emit(tag, time, doc)
164
+ router.emit(tag, time, doc)
165
165
  end
166
166
 
167
167
  def cursor_conf
@@ -5,7 +5,7 @@ module MongoUtil
5
5
  def self.included(klass)
6
6
  klass.instance_eval {
7
7
  config_param :user, :string, :default => nil
8
- config_param :password, :string, :default => nil
8
+ config_param :password, :string, :default => nil, :secret => true
9
9
  }
10
10
  end
11
11
 
@@ -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
 
@@ -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
- skip('BufferedOutputTestDriver should support emit arguments(chain and key)')
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
@@ -3,9 +3,6 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
3
 
4
4
  require 'rr'
5
5
  require 'test/unit'
6
- class Test::Unit::TestCase
7
- include RR::Adapters::TestUnit
8
- end
9
6
 
10
7
  if ENV['SIMPLE_COV']
11
8
  require 'simplecov'
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.10
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-05-27 00:00:00.000000000 Z
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.9
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.9
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.2.2
152
+ rubygems_version: 2.4.5.1
138
153
  signing_key:
139
154
  specification_version: 4
140
155
  summary: MongoDB plugin for Fluentd