fluent-plugin-s3 0.3.5 → 0.3.6

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: c80b554d8bbc4b01e626c73654ceebe1ff6e496c
4
- data.tar.gz: 2f794a61f212597e55379b7046f6b5bec1bef1a6
3
+ metadata.gz: 7f3399bf6de1662008eb3172d029a449f367a8f9
4
+ data.tar.gz: 533c1fdc074a07ae577463bc342fd537f25919e1
5
5
  SHA512:
6
- metadata.gz: c374a51e3273151978586226aab10612990e8a8e74c2a55934c0b3ab81d9c410407dea2772aa2646da62c904e392dbac88edd9b27a72bd63dbc44fa1460a5f0b
7
- data.tar.gz: 98892a5ce1304a1407b079917f9aa9c9a44204f68218764194d0d4f4b2e3b4874a5198c0d89f06f589e8c4775de6b27d31b3297521db9719ca672d507907ef4a
6
+ metadata.gz: 1e4e4cf633290fe4630797453305199cb884a96722cf0bc0cdeb96dde0c9b759aae36fa18453872938c8c2d775047972950356371f400781ab446b418c6e2682
7
+ data.tar.gz: f8f2128b80bb3fc305f53db40ff30172d5b8fbb21406bdd1c9055c7b7c9e4c3bbac197aee160a499f86079ed6a29e34ff44b3d5300df360a95528c196f11c673
data/.travis.yml CHANGED
@@ -4,10 +4,19 @@ rvm:
4
4
  - 1.9.2
5
5
  - 1.9.3
6
6
  - 2.0.0
7
+ - 2.1.0
7
8
  - rbx-19mode
8
9
 
10
+ gemfile:
11
+ - Gemfile
12
+ - Gemfile.fluentd.lt.0.10.43
13
+
9
14
  branches:
10
15
  only:
11
16
  - master
12
17
 
13
18
  script: bundle exec rake test
19
+
20
+ matrix:
21
+ allow_failures:
22
+ - rvm: rbx-19mode
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Release 0.3.6 - 2014/02/05
2
+
3
+ * Support 'log_level' option
4
+
5
+
1
6
  Release 0.3.5 - 2013/12/05
2
7
 
3
8
  * Add 'reduced_redundancy' option to store logs in reduced redundancy
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem 'fluentd', '= 0.10.42'
4
+ gemspec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.5
1
+ 0.3.6
@@ -5,6 +5,10 @@ require 'fluent/mixin/config_placeholders'
5
5
  class S3Output < Fluent::TimeSlicedOutput
6
6
  Fluent::Plugin.register_output('s3', self)
7
7
 
8
+ unless method_defined?(:log)
9
+ define_method(:log) { $log }
10
+ end
11
+
8
12
  def initialize
9
13
  super
10
14
  require 'aws-sdk'
@@ -177,7 +181,7 @@ class S3Output < Fluent::TimeSlicedOutput
177
181
  def ensure_bucket
178
182
  if !@bucket.exists?
179
183
  if @auto_create_bucket
180
- $log.info "Creating bucket #{@s3_bucket} on #{@s3_endpoint}"
184
+ log.info "Creating bucket #{@s3_bucket} on #{@s3_endpoint}"
181
185
  @s3.buckets.create(@s3_bucket)
182
186
  else
183
187
  raise "The specified bucket does not exist: bucket = #{@s3_bucket}"
data/test/out_s3.rb CHANGED
@@ -76,7 +76,7 @@ class S3OutputTest < Test::Unit::TestCase
76
76
  path_slicer = d.instance.instance_variable_get(:@path_slicer)
77
77
  path = d.instance.instance_variable_get(:@path)
78
78
  slice = path_slicer.call(path)
79
- assert_equal slice, Time.now.strftime("log/%Y/%m/%d")
79
+ assert_equal slice, Time.now.utc.strftime("log/%Y/%m/%d")
80
80
  end
81
81
 
82
82
  def test_path_slicing_utc
@@ -198,6 +198,7 @@ class S3OutputTest < Test::Unit::TestCase
198
198
  utc
199
199
  buffer_type memory
200
200
  auto_create_bucket false
201
+ log_level debug
201
202
  ]
202
203
 
203
204
  def create_time_sliced_driver(additional_conf = '')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-05 00:00:00.000000000 Z
11
+ date: 2014-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -104,6 +104,7 @@ files:
104
104
  - AUTHORS
105
105
  - ChangeLog
106
106
  - Gemfile
107
+ - Gemfile.fluentd.lt.0.10.43
107
108
  - README.rdoc
108
109
  - Rakefile
109
110
  - VERSION
@@ -129,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
130
  version: '0'
130
131
  requirements: []
131
132
  rubyforge_project:
132
- rubygems_version: 2.0.14
133
+ rubygems_version: 2.0.2
133
134
  signing_key:
134
135
  specification_version: 4
135
136
  summary: Amazon S3 output plugin for Fluentd event collector