fluent-plugin-s3 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +9 -0
- data/ChangeLog +5 -0
- data/Gemfile.fluentd.lt.0.10.43 +4 -0
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_s3.rb +5 -1
- data/test/out_s3.rb +2 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f3399bf6de1662008eb3172d029a449f367a8f9
|
4
|
+
data.tar.gz: 533c1fdc074a07ae577463bc342fd537f25919e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.6
|
data/lib/fluent/plugin/out_s3.rb
CHANGED
@@ -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
|
-
|
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.
|
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:
|
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.
|
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
|