fluentd 0.14.12 → 0.14.13

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fluentd might be problematic. Click here for more details.

Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +2 -0
  3. data/ChangeLog +33 -0
  4. data/bin/fluent-plugin-config-format +5 -0
  5. data/bin/fluent-plugin-generate +5 -0
  6. data/lib/fluent/command/plugin_config_formatter.rb +258 -0
  7. data/lib/fluent/command/plugin_generator.rb +301 -0
  8. data/lib/fluent/compat/detach_process_mixin.rb +25 -0
  9. data/lib/fluent/compat/filter.rb +1 -1
  10. data/lib/fluent/compat/input.rb +1 -0
  11. data/lib/fluent/compat/output.rb +8 -5
  12. data/lib/fluent/config/configure_proxy.rb +31 -8
  13. data/lib/fluent/configurable.rb +2 -2
  14. data/lib/fluent/output.rb +3 -0
  15. data/lib/fluent/plugin/buffer/file_chunk.rb +52 -11
  16. data/lib/fluent/plugin/filter.rb +1 -1
  17. data/lib/fluent/plugin/filter_record_transformer.rb +5 -1
  18. data/lib/fluent/plugin/in_tail.rb +13 -6
  19. data/lib/fluent/plugin/input.rb +1 -1
  20. data/lib/fluent/plugin/output.rb +26 -6
  21. data/lib/fluent/plugin/parser_apache.rb +1 -1
  22. data/lib/fluent/plugin/parser_apache_error.rb +1 -1
  23. data/lib/fluent/plugin/parser_multiline.rb +1 -0
  24. data/lib/fluent/plugin/parser_nginx.rb +1 -1
  25. data/lib/fluent/plugin/parser_regexp.rb +18 -0
  26. data/lib/fluent/plugin_helper.rb +19 -1
  27. data/lib/fluent/plugin_helper/retry_state.rb +40 -16
  28. data/lib/fluent/process.rb +22 -0
  29. data/lib/fluent/supervisor.rb +2 -21
  30. data/lib/fluent/test/helpers.rb +14 -0
  31. data/lib/fluent/version.rb +1 -1
  32. data/templates/new_gem/Gemfile +3 -0
  33. data/templates/new_gem/README.md.erb +43 -0
  34. data/templates/new_gem/Rakefile +13 -0
  35. data/templates/new_gem/fluent-plugin.gemspec.erb +27 -0
  36. data/templates/new_gem/lib/fluent/plugin/filter.rb.erb +14 -0
  37. data/templates/new_gem/lib/fluent/plugin/formatter.rb.erb +14 -0
  38. data/templates/new_gem/lib/fluent/plugin/input.rb.erb +11 -0
  39. data/templates/new_gem/lib/fluent/plugin/output.rb.erb +11 -0
  40. data/templates/new_gem/lib/fluent/plugin/parser.rb.erb +15 -0
  41. data/templates/new_gem/test/helper.rb.erb +8 -0
  42. data/templates/new_gem/test/plugin/test_filter.rb.erb +18 -0
  43. data/templates/new_gem/test/plugin/test_formatter.rb.erb +18 -0
  44. data/templates/new_gem/test/plugin/test_input.rb.erb +18 -0
  45. data/templates/new_gem/test/plugin/test_output.rb.erb +18 -0
  46. data/templates/new_gem/test/plugin/test_parser.rb.erb +18 -0
  47. data/templates/plugin_config_formatter/param.md-compact.erb +25 -0
  48. data/templates/plugin_config_formatter/param.md.erb +34 -0
  49. data/templates/plugin_config_formatter/section.md.erb +12 -0
  50. data/test/command/test_binlog_reader.rb +0 -9
  51. data/test/command/test_plugin_config_formatter.rb +275 -0
  52. data/test/command/test_plugin_generator.rb +66 -0
  53. data/test/config/test_configure_proxy.rb +89 -45
  54. data/test/plugin/data/log/foo/bar2 +0 -0
  55. data/test/plugin/test_in_tail.rb +97 -8
  56. data/test/plugin/test_output.rb +18 -0
  57. data/test/plugin/test_output_as_buffered.rb +35 -0
  58. data/test/plugin_helper/test_compat_parameters.rb +2 -0
  59. data/test/plugin_helper/test_retry_state.rb +23 -0
  60. data/test/test_output.rb +5 -0
  61. data/test/test_process.rb +14 -0
  62. metadata +37 -3
@@ -0,0 +1,14 @@
1
+ require_relative 'helper'
2
+ require 'fluent/process'
3
+
4
+ class ProcessCompatibilityTest < ::Test::Unit::TestCase
5
+ test 'DetachProcessMixin is defined' do
6
+ assert defined?(::Fluent::DetachProcessMixin)
7
+ assert_equal ::Fluent::DetachProcessMixin, ::Fluent::Compat::DetachProcessMixin
8
+ end
9
+
10
+ test 'DetachMultiProcessMixin is defined' do
11
+ assert defined?(::Fluent::DetachMultiProcessMixin)
12
+ assert_equal ::Fluent::DetachMultiProcessMixin, ::Fluent::Compat::DetachMultiProcessMixin
13
+ end
14
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluentd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.12
4
+ version: 0.14.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-30 00:00:00.000000000 Z
11
+ date: 2017-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -289,6 +289,8 @@ executables:
289
289
  - fluent-cat
290
290
  - fluent-debug
291
291
  - fluent-gem
292
+ - fluent-plugin-config-format
293
+ - fluent-plugin-generate
292
294
  - fluentd
293
295
  extensions: []
294
296
  extra_rdoc_files: []
@@ -309,6 +311,8 @@ files:
309
311
  - bin/fluent-cat
310
312
  - bin/fluent-debug
311
313
  - bin/fluent-gem
314
+ - bin/fluent-plugin-config-format
315
+ - bin/fluent-plugin-generate
312
316
  - bin/fluentd
313
317
  - code-of-conduct.md
314
318
  - example/copy_roundrobin.conf
@@ -353,7 +357,10 @@ files:
353
357
  - lib/fluent/command/cat.rb
354
358
  - lib/fluent/command/debug.rb
355
359
  - lib/fluent/command/fluentd.rb
360
+ - lib/fluent/command/plugin_config_formatter.rb
361
+ - lib/fluent/command/plugin_generator.rb
356
362
  - lib/fluent/compat/call_super_mixin.rb
363
+ - lib/fluent/compat/detach_process_mixin.rb
357
364
  - lib/fluent/compat/exec_util.rb
358
365
  - lib/fluent/compat/file_util.rb
359
366
  - lib/fluent/compat/filter.rb
@@ -496,6 +503,7 @@ files:
496
503
  - lib/fluent/plugin_helper/thread.rb
497
504
  - lib/fluent/plugin_helper/timer.rb
498
505
  - lib/fluent/plugin_id.rb
506
+ - lib/fluent/process.rb
499
507
  - lib/fluent/registry.rb
500
508
  - lib/fluent/root_agent.rb
501
509
  - lib/fluent/rpc.rb
@@ -527,8 +535,28 @@ files:
527
535
  - lib/fluent/unique_id.rb
528
536
  - lib/fluent/version.rb
529
537
  - lib/fluent/winsvc.rb
538
+ - templates/new_gem/Gemfile
539
+ - templates/new_gem/README.md.erb
540
+ - templates/new_gem/Rakefile
541
+ - templates/new_gem/fluent-plugin.gemspec.erb
542
+ - templates/new_gem/lib/fluent/plugin/filter.rb.erb
543
+ - templates/new_gem/lib/fluent/plugin/formatter.rb.erb
544
+ - templates/new_gem/lib/fluent/plugin/input.rb.erb
545
+ - templates/new_gem/lib/fluent/plugin/output.rb.erb
546
+ - templates/new_gem/lib/fluent/plugin/parser.rb.erb
547
+ - templates/new_gem/test/helper.rb.erb
548
+ - templates/new_gem/test/plugin/test_filter.rb.erb
549
+ - templates/new_gem/test/plugin/test_formatter.rb.erb
550
+ - templates/new_gem/test/plugin/test_input.rb.erb
551
+ - templates/new_gem/test/plugin/test_output.rb.erb
552
+ - templates/new_gem/test/plugin/test_parser.rb.erb
553
+ - templates/plugin_config_formatter/param.md-compact.erb
554
+ - templates/plugin_config_formatter/param.md.erb
555
+ - templates/plugin_config_formatter/section.md.erb
530
556
  - test/command/test_binlog_reader.rb
531
557
  - test/command/test_fluentd.rb
558
+ - test/command/test_plugin_config_formatter.rb
559
+ - test/command/test_plugin_generator.rb
532
560
  - test/compat/test_calls_super.rb
533
561
  - test/compat/test_parser.rb
534
562
  - test/config/assertions.rb
@@ -547,6 +575,7 @@ files:
547
575
  - test/plugin/data/2010/01/20100102.log
548
576
  - test/plugin/data/log/bar
549
577
  - test/plugin/data/log/foo/bar.log
578
+ - test/plugin/data/log/foo/bar2
550
579
  - test/plugin/data/log/test.log
551
580
  - test/plugin/test_bare_output.rb
552
581
  - test/plugin/test_base.rb
@@ -657,6 +686,7 @@ files:
657
686
  - test/test_plugin_classes.rb
658
687
  - test/test_plugin_helper.rb
659
688
  - test/test_plugin_id.rb
689
+ - test/test_process.rb
660
690
  - test/test_root_agent.rb
661
691
  - test/test_supervisor.rb
662
692
  - test/test_test_drivers.rb
@@ -683,13 +713,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
683
713
  version: '0'
684
714
  requirements: []
685
715
  rubyforge_project:
686
- rubygems_version: 2.6.8
716
+ rubygems_version: 2.5.2
687
717
  signing_key:
688
718
  specification_version: 4
689
719
  summary: Fluentd event collector
690
720
  test_files:
691
721
  - test/command/test_binlog_reader.rb
692
722
  - test/command/test_fluentd.rb
723
+ - test/command/test_plugin_config_formatter.rb
724
+ - test/command/test_plugin_generator.rb
693
725
  - test/compat/test_calls_super.rb
694
726
  - test/compat/test_parser.rb
695
727
  - test/config/assertions.rb
@@ -708,6 +740,7 @@ test_files:
708
740
  - test/plugin/data/2010/01/20100102.log
709
741
  - test/plugin/data/log/bar
710
742
  - test/plugin/data/log/foo/bar.log
743
+ - test/plugin/data/log/foo/bar2
711
744
  - test/plugin/data/log/test.log
712
745
  - test/plugin/test_bare_output.rb
713
746
  - test/plugin/test_base.rb
@@ -818,6 +851,7 @@ test_files:
818
851
  - test/test_plugin_classes.rb
819
852
  - test/test_plugin_helper.rb
820
853
  - test/test_plugin_id.rb
854
+ - test/test_process.rb
821
855
  - test/test_root_agent.rb
822
856
  - test/test_supervisor.rb
823
857
  - test/test_test_drivers.rb