fluent-plugin-s3 0.8.2 → 0.8.3

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: 4cc0288cd0570f9a9d1126c0902ce9c433c35cbf
4
- data.tar.gz: 0e43079cda29f9319892c23e1eb5beea722dc714
3
+ metadata.gz: 337c5d2366c1bc76613288e4a23a2f53a9192078
4
+ data.tar.gz: 50f1f97309df5a9ea20cea5da671b0cb451d2f0e
5
5
  SHA512:
6
- metadata.gz: e2765df3ba45b91b809b12deb008d77a83e581c71858ef26b8afb351d0d476246fb3020c9505cf39da2d508e5008a8f5e7a4ce955734144b8f31e417e877fbb3
7
- data.tar.gz: c1390e6687f6b024f265776f2e4882151741b450bc1e04d7c5f0bda276a8da06ac1e0ad975785e53e181b10db79a03735c69ae71c636cb7b2af8c0517b54f9e9
6
+ metadata.gz: 258e52f9de5e1966a7ae34229a7ccecee0e40a140f2837937a91218d4b85a6e7f66dc0d24f99fe8d3787e7a37cf49a0b2a22144132ba3a69579eb2ad907cfdc0
7
+ data.tar.gz: 410167969eddbc747058485898eea4c5048a1df14ff0ae4c3b06759cd931bd589cb31627adc767cd63c42279fab9f3cf3ffd3a4b53442dc173999f82f736d859
data/ChangeLog CHANGED
@@ -1,4 +1,9 @@
1
- Release 0.8.2 - 2017/02/298
1
+ Release 0.8.3 - 2017/05/09
2
+
3
+ * Add tmp_dir parameter to change the directory for tempfile
4
+
5
+
6
+ Release 0.8.2 - 2017/02/29
2
7
 
3
8
  * Log debug message when `debug` or `trace` is set in `@log_level`
4
9
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.2
1
+ 0.8.3
@@ -122,6 +122,8 @@ module Fluent
122
122
  config_param :signature_version, :string, :default => nil # use nil to follow SDK default configuration
123
123
  desc "Given a threshold to treat events as delay, output warning logs if delayed events were put into s3"
124
124
  config_param :warn_for_delay, :time, :default => nil
125
+ desc "Directory for temporary files, instead of system temp directory."
126
+ config_param :tmp_dir, :string, :default => nil
125
127
 
126
128
  attr_reader :bucket
127
129
 
@@ -253,7 +255,7 @@ module Fluent
253
255
  }
254
256
  end
255
257
 
256
- tmp = Tempfile.new("s3-")
258
+ tmp = Tempfile.new("s3-", @tmp_dir)
257
259
  tmp.binmode
258
260
  begin
259
261
  @compressor.compress(chunk, tmp)
@@ -403,6 +405,8 @@ module Fluent
403
405
  class Compressor
404
406
  include Configurable
405
407
 
408
+ config_param :tmp_dir, :string, :default => nil
409
+
406
410
  def initialize(opts = {})
407
411
  super()
408
412
  @buffer_type = opts[:buffer_type]
@@ -23,7 +23,7 @@ module Fluent
23
23
  path = if chunk_is_file
24
24
  chunk.path
25
25
  else
26
- w = Tempfile.new("chunk-gzip-tmp")
26
+ w = Tempfile.new("chunk-gzip-tmp", @tmp_dir)
27
27
  w.binmode
28
28
  chunk.write_to(w)
29
29
  w.close
@@ -19,7 +19,7 @@ module Fluent
19
19
  end
20
20
 
21
21
  def compress(chunk, tmp)
22
- w = Tempfile.new("chunk-xz-tmp")
22
+ w = Tempfile.new("chunk-xz-tmp", @tmp_dir)
23
23
  w.binmode
24
24
  chunk.write_to(w)
25
25
  w.close
@@ -19,7 +19,7 @@ module Fluent
19
19
  end
20
20
 
21
21
  def compress(chunk, tmp)
22
- w = Tempfile.new("chunk-tmp")
22
+ w = Tempfile.new("chunk-tmp", @tmp_dir)
23
23
  w.binmode
24
24
  chunk.write_to(w)
25
25
  w.close
@@ -4,6 +4,7 @@ module Fluent
4
4
  S3Input.register_extractor('lzo', self)
5
5
 
6
6
  config_param :command_parameter, :string, :default => '-qdc'
7
+ config_param :customer_tmp_dir, :string, :default => Dir.tmpdir
7
8
 
8
9
  def configure(conf)
9
10
  super
@@ -452,7 +452,7 @@ EOC
452
452
  s3obj.exists? { false }
453
453
 
454
454
  tempfile = File.new(s3_local_file_path, "w")
455
- stub(Tempfile).new("s3-") { tempfile }
455
+ stub(Tempfile).new("s3-", nil) { tempfile }
456
456
  s3obj.put(:body => tempfile,
457
457
  :content_type => "application/x-gzip",
458
458
  :storage_class => "STANDARD")
@@ -484,7 +484,7 @@ EOC
484
484
  :client => @s3_client))
485
485
 
486
486
  tempfile = File.new(s3_local_file_path, "w")
487
- stub(Tempfile).new("s3-") { tempfile }
487
+ stub(Tempfile).new("s3-", nil) { tempfile }
488
488
  s3obj.put(:body => tempfile,
489
489
  :content_type => "application/x-gzip",
490
490
  :storage_class => "STANDARD")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-01 00:00:00.000000000 Z
12
+ date: 2017-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  requirements: []
171
171
  rubyforge_project:
172
- rubygems_version: 2.6.8
172
+ rubygems_version: 2.6.11
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: Amazon S3 output plugin for Fluentd event collector