fluent-plugin-s3-hubspot 1.0.0.rc6 → 1.0.0.rc6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/fluent/plugin/out_s3.rb +6 -3
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.rc6
1
+ 1.0.0.rc6.1
@@ -268,7 +268,7 @@ module Fluent::Plugin
268
268
  begin
269
269
  @compressor.compress(chunk, tmp)
270
270
  tmp.rewind
271
- log.debug { "out_s3: write chunk: {key:#{chunk.key},tsuffix:#{tsuffix(chunk)}} to s3://#{@s3_bucket}/#{s3path}" }
271
+ log.debug "out_s3: write chunk: {key:#{chunk.key},tsuffix:#{tsuffix(chunk)}} to s3://#{@s3_bucket}/#{s3path}"
272
272
 
273
273
  put_options = {
274
274
  body: tmp,
@@ -283,7 +283,10 @@ module Fluent::Plugin
283
283
  put_options[:acl] = @acl if @acl
284
284
 
285
285
  if @s3_metadata
286
- put_options[:metadata] = Hash[@s3_metadata.map {|k, v| k, extract_placeholders(v, metadata)}]
286
+ put_options[:metadata] = {}
287
+ @s3_metadata.each do |k, v|
288
+ put_options[:metadata][k] = extract_placeholders(v, metadata)
289
+ end
287
290
  end
288
291
  @bucket.object(s3path).put(put_options)
289
292
 
@@ -291,7 +294,7 @@ module Fluent::Plugin
291
294
 
292
295
  if @warn_for_delay
293
296
  if Time.at(chunk.metadata.timekey) < Time.now - @warn_for_delay
294
- log.warn { "out_s3: delayed events were put to s3://#{@s3_bucket}/#{s3path}" }
297
+ log.warn "out_s3: delayed events were put to s3://#{@s3_bucket}/#{s3path}"
295
298
  end
296
299
  end
297
300
  ensure
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-s3-hubspot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc6
4
+ version: 1.0.0.rc6.1
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-08-29 00:00:00.000000000 Z
13
+ date: 2017-09-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fluentd