fluent-plugin-mongo 0.7.4 → 0.7.5

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: e0f06d14dcaa01affed6b682b47507f1316382b3
4
- data.tar.gz: 45949ee4d712a3383a5d1d0950dbc4777023df67
3
+ metadata.gz: b5bc17bc85c0116586366992b87475134f8e30b5
4
+ data.tar.gz: 5005fb72ebeacbe9a3c2077dc8e5624fbc16e2d4
5
5
  SHA512:
6
- metadata.gz: d46e3642f3e5ea270751f63d8f0e763d368e87a1d01c0bc87ef4b5e1f53c69dc866a7813129e3df0eda442c46850e57aa3e319397c96a77329347edf1828585f
7
- data.tar.gz: 58520fb47980924087cd3daecc2e9913064dd8874e0ea1204be5af83132cf7bd66678a1b18dcf4e8c9f9786d74d8ec3232bf1bd8ce06d7f04ab84d5c1ead9440
6
+ metadata.gz: b0163aa2bb8a33da8d74b7e29e499facfefcccae40867dca9ac95928ea8f3e581f38ec14f111808e70cd52f243b547f94ff89bf789c7ff7c773267890b8d847a
7
+ data.tar.gz: 34d621221f8ba6c8bfc4d41e5be3aa81e9428f4df4dbd82b3a9d8cd90bfdacf682b4d35b056f8ce6ffe17d173703ae99b3734bf39118bba93252ade941996851
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Release 0.7.5 - 2015/01/05
2
+
3
+ * Add journaled option to support journaled write
4
+
5
+
1
6
  Release 0.7.4 - 2014/11/10
2
7
 
3
8
  * Sanitize keys of each hash of an array
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.4
1
+ 0.7.5
@@ -19,6 +19,7 @@ module Fluent
19
19
  config_param :disable_collection_check, :bool, :default => nil
20
20
  config_param :exclude_broken_fields, :string, :default => nil
21
21
  config_param :write_concern, :integer, :default => nil
22
+ config_param :journaled, :bool, :default => false
22
23
  config_param :replace_dot_in_key_with, :string, :default => nil
23
24
  config_param :replace_dollar_in_key_with, :string, :default => nil
24
25
 
@@ -70,6 +71,7 @@ module Fluent
70
71
  end
71
72
 
72
73
  @connection_options[:w] = @write_concern unless @write_concern.nil?
74
+ @connection_options[:j] = @journaled
73
75
  @connection_options[:ssl] = @ssl
74
76
 
75
77
  # MongoDB uses BSON's Date for time.
@@ -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}, d.instance.connection_options)
55
+ assert_equal({:ssl => false, :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,15 @@ class MongoOutputTest < Test::Unit::TestCase
63
63
  write_concern 2
64
64
  ])
65
65
 
66
- assert_equal({:w => 2, :ssl => false}, d.instance.connection_options)
66
+ assert_equal({:w => 2, :ssl => false, :j => false}, d.instance.connection_options)
67
+ end
68
+
69
+ def test_configure_with_journaled
70
+ d = create_driver(default_config + %[
71
+ journaled true
72
+ ])
73
+
74
+ assert_equal({:ssl => false, :j => true}, d.instance.connection_options)
67
75
  end
68
76
 
69
77
  def test_configure_with_ssl
@@ -71,7 +79,7 @@ class MongoOutputTest < Test::Unit::TestCase
71
79
  ssl true
72
80
  ])
73
81
 
74
- assert_equal({:ssl => true}, d.instance.connection_options)
82
+ assert_equal({:ssl => true, :j => false}, d.instance.connection_options)
75
83
  end
76
84
 
77
85
  def test_format
@@ -265,7 +273,7 @@ class MongoReplOutputTest < MongoOutputTest
265
273
  assert_equal(build_seeds(3), d.instance.nodes)
266
274
  assert_equal(45, d.instance.num_retries)
267
275
  assert_equal({:capped => true, :size => 100}, d.instance.collection_options)
268
- assert_equal({:ssl => false}, d.instance.connection_options)
276
+ assert_equal({:ssl => false, :j => false}, d.instance.connection_options)
269
277
  end
270
278
  end
271
279
 
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
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Nakagawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-10 00:00:00.000000000 Z
11
+ date: 2015-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd