fluent-plugin-file-alternative 0.2.1 → 0.2.2

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: d3796ea866576055a4dbef203334e70d6df34a31
4
- data.tar.gz: 1f555bcb055ca5afdfc8bc263d0c1e564cceee4c
3
+ metadata.gz: c3a323dabb8ae76d2eede7991e3f0e08462336d6
4
+ data.tar.gz: 46d53cd2af10acfce5983cdc7c1b6e658147c5df
5
5
  SHA512:
6
- metadata.gz: c8bf1e6f664ad3e757e9a7e529f029ae3a72c962668549ed0c7225dcdfc5c8f3bc790a91d990edb01b7eba46b63d4dc4b230aef4185f9b01e105e3f01fcd2cc8
7
- data.tar.gz: ea189049c4a6d50aef172d5d5fcff3fc25b6b36f6d9299c14a4ee394082e60a09d5e7e4e952c42aeec9bd902ed4d2a2303c8e2c633b64fe7c49066cdfd4f4c59
6
+ metadata.gz: 4f6f99151dbbf3336bbf23cc2d97fb579c1babf7fde9f2bb5cb0c5995ba91cf52068c34be5a4668a277a95d0d3d55f1944403d82b6232077e0bfbec1cd1975fb
7
+ data.tar.gz: c608ce655c43d691c844b24bcb99c30edfd7bcfd0df3c0bfd4778d9a12560d166782bb831a4e331bf896067ea6475bef009f0dd245a54968dc043b74b93c8ef9
@@ -1,4 +1,7 @@
1
1
  language: ruby
2
+ sudo: false
2
3
  rvm:
3
- - 1.9.3
4
4
  - 2.0.0
5
+ - 2.1
6
+ - 2.2
7
+ - 2.3.0
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "fluent-plugin-file-alternative"
5
- gem.version = "0.2.1"
5
+ gem.version = "0.2.2"
6
6
 
7
7
  gem.authors = ["TAGOMORI Satoshi"]
8
8
  gem.email = ["tagomoris@gmail.com"]
@@ -15,9 +15,15 @@ class Fluent::FileAlternativeOutput < Fluent::TimeSlicedOutput
15
15
 
16
16
  config_set_default :time_slice_format, '%Y%m%d' # %Y%m%d%H
17
17
 
18
- config_param :path, :string # /path/pattern/to/hdfs/file can use %Y %m %d %H %M %S
19
-
20
- config_param :compress, :default => nil do |val|
18
+ config_param :path, :string,
19
+ :desc => <<-DESC
20
+ The Path of the file.
21
+ /path/pattern/to/hdfs/file can use %Y %m %d %H %M %S
22
+ DESC
23
+
24
+ config_param :compress,
25
+ :desc => "Supported format: #{SUPPORTED_COMPRESS.keys}",
26
+ :default => nil do |val|
21
27
  c = SUPPORTED_COMPRESS[val.to_sym]
22
28
  unless c
23
29
  raise ConfigError, "Unsupported compression algorithm '#{compress}'"
@@ -25,11 +31,14 @@ class Fluent::FileAlternativeOutput < Fluent::TimeSlicedOutput
25
31
  c
26
32
  end
27
33
 
28
- config_param :symlink_path, :string, :default => nil
34
+ config_param :symlink_path, :string, :default => nil,
35
+ :desc => "Create symlink to temporary buffered file when buffer_type is file."
29
36
 
30
- config_param :dir_mode, :string, :default => '0777'
37
+ config_param :dir_mode, :string, :default => '0777',
38
+ :desc => "The mode of the directory."
31
39
 
32
- config_param :set_dir_mode, :bool, :default => true
40
+ config_param :set_dir_mode, :bool, :default => true,
41
+ :desc => "Set the mode of the directory."
33
42
 
34
43
  include Fluent::Mixin::PlainTextFormatter
35
44
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-file-alternative
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2016-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd