fluent-plugin-kinesis 2.0.0 → 2.0.1

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: 24d75eb607afb3a1a251ab9bac156cde85e5053e
4
- data.tar.gz: 30bb3774c5c3f9f8aa5f921ed8e78a6bc49e495e
3
+ metadata.gz: 3b0377336aca16e998f29f478eaf04265dd8b771
4
+ data.tar.gz: ec110cd43b0f3dd16f6a9f4bbadf236c97fc46e7
5
5
  SHA512:
6
- metadata.gz: 2b8d65b4999dc9ad78f88119ee166649dd96b3df1f1acadd707134333f14aa50f4052b58ca2870712e34f5a0bfd583a21c208c71e58538fd60cf6bd7d66e127d
7
- data.tar.gz: 598e0b74f91110529ea4a89e22f1d62b5b8f55dd5860d76980001be4e4a7cc57514767fa58e7892741002794fec89c4537fe494dd2ab73e14c47871f8bbf1bb8
6
+ metadata.gz: af17bc14e59b32a101cd0f774ae29df5213dd2b333b9af1c8c2697fc847ecbd86d8f35a6f4a4690602eb07c4184d71fa00c332002312a63ed52f81d55824e2cb
7
+ data.tar.gz: f6e7c4ff10c85ddc8da01456f58d8c41e1b0062d89ab102a5f5f8848cc945852dbb0b274f2402c687fa5a32ffeee3cc29e564297a8ea2e611023639e3678c40d
@@ -7,7 +7,7 @@ matrix:
7
7
  gemfile: Gemfile
8
8
  - rvm: 2.1.10
9
9
  os: linux
10
- gemfile: gemfiles/Gemfile.fluentd-0.12
10
+ gemfile: gemfiles/Gemfile.td-agent-2.3.5
11
11
 
12
12
  script: bundle exec rake test
13
13
 
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.0.1
4
+
5
+ - Bug - Fix AWS SDK conflict with s3 plugin [#131](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/131)
6
+
3
7
  ## 2.0.0
4
8
 
5
9
  - Feature - Add `kinesis_streams_aggregated` ouput plugin [#107](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/107)
data/Makefile CHANGED
@@ -12,7 +12,7 @@
12
12
  # ANY KIND, either express or implied. See the License for the specific
13
13
  # language governing permissions and limitations under the License.
14
14
 
15
- .PHONY: run run-v0.12 test test-v.012 install $(wildcard test/test_*.rb) $(wildcard test/**/test_*.rb) benchmark benchmark-remote
15
+ .PHONY: run run-td-agent-2.3.5 test test-td-agent-2.3.5 install $(wildcard test/test_*.rb) $(wildcard test/**/test_*.rb) benchmark benchmark-remote
16
16
 
17
17
  all:
18
18
  bundle install
@@ -20,14 +20,16 @@ all:
20
20
  run:
21
21
  bundle exec fluentd -v
22
22
 
23
- run-v0.12:
24
- BUNDLE_GEMFILE=./gemfiles/Gemfile.fluentd-0.12 bundle exec fluentd -v
23
+ run-td-agent-2.3.5:
24
+ RBENV_VERSION=2.1.10 BUNDLE_GEMFILE=./gemfiles/Gemfile.td-agent-2.3.5 bundle update
25
+ RBENV_VERSION=2.1.10 BUNDLE_GEMFILE=./gemfiles/Gemfile.td-agent-2.3.5 bundle exec fluentd -v
25
26
 
26
27
  test:
27
28
  bundle exec rake test
28
29
 
29
- test-v.012:
30
- BUNDLE_GEMFILE=./gemfiles/Gemfile.fluentd-0.12 bundle exec rake test
30
+ test-td-agent-2.3.5:
31
+ RBENV_VERSION=2.1.10 BUNDLE_GEMFILE=./gemfiles/Gemfile.td-agent-2.3.5 bundle update
32
+ RBENV_VERSION=2.1.10 BUNDLE_GEMFILE=./gemfiles/Gemfile.td-agent-2.3.5 bundle exec rake test
31
33
 
32
34
  install:
33
35
  bundle exec rake install:local
data/README.md CHANGED
@@ -11,6 +11,8 @@ that sends events to [Amazon Kinesis Streams][streams] and [Amazon Kinesis Fireh
11
11
 
12
12
  Also, there is a [documentation on Fluentd official site][fluentd-doc-kinesis].
13
13
 
14
+ **Note**: This README is for v2.x. If you use v1.x, see the [old README][v1-readme].
15
+
14
16
  ## Installation
15
17
  This fluentd plugin is available as the `fluent-plugin-kinesis` gem from RubyGems.
16
18
 
@@ -47,7 +49,7 @@ Or just download specify your Ruby library path. Below is the sample for specify
47
49
 
48
50
  ## Dependencies
49
51
  * Ruby 2.1.0+
50
- * Fluentd 0.12.35+
52
+ * Fluentd 0.12.35+ (supporting 0.14.x)
51
53
 
52
54
  ## Basic Usage
53
55
  Here are general procedures for using this plugin:
@@ -377,7 +379,7 @@ To launch `fluentd` process with this plugin for development, follow the steps b
377
379
 
378
380
  To launch using Fluentd v0.12, use `BUNDLE_GEMFILE` environment variable:
379
381
 
380
- BUNDLE_GEMFILE=$PWD/gemfiles/Gemfile.fluentd-0.12 bundle exec fluentd -c /path/to/fluent.conf
382
+ BUNDLE_GEMFILE=$PWD/gemfiles/Gemfile.td-agent-2.3.5 bundle exec fluentd -c /path/to/fluent.conf
381
383
 
382
384
  ## Contributing
383
385
 
@@ -401,3 +403,4 @@ Bug reports and pull requests are welcome on [GitHub][github].
401
403
  [inject.rb]: https://github.com/fluent/fluentd/blob/master/lib/fluent/plugin_helper/inject.rb
402
404
  [fluentd-doc-kinesis]: http://docs.fluentd.org/articles/kinesis-stream
403
405
  [fluent-plugin-s3]: https://github.com/fluent/fluent-plugin-s3
406
+ [v1-readme]: https://github.com/awslabs/aws-fluent-plugin-kinesis/blob/v1/README.md
@@ -31,8 +31,15 @@ Gem::Specification.new do |spec|
31
31
  spec.required_ruby_version = '>= 2.1'
32
32
 
33
33
  spec.add_dependency "fluentd", ">= 0.12.35", "< 2"
34
- spec.add_dependency "aws-sdk-kinesis", "~> 1"
35
- spec.add_dependency "aws-sdk-firehose", "~> 1"
34
+ spec.add_dependency "aws-sdk", ">= 2.9.9", "< 4"
35
+ # TODO: fluent-plugin-s3 depends on v2 only.
36
+ # https://github.com/fluent/fluent-plugin-s3/issues/208
37
+ #
38
+ # This plugin is sometimes used with s3 plugin.
39
+ # Unless s3 plugin is updated to be available with v3,
40
+ # this plugin should depend on v2 only.
41
+ # spec.add_dependency "aws-sdk-kinesis", "~> 1"
42
+ # spec.add_dependency "aws-sdk-firehose", "~> 1"
36
43
  spec.add_dependency "google-protobuf", "~> 3"
37
44
 
38
45
  spec.add_development_dependency "bundler", "~> 1.10"
@@ -17,4 +17,9 @@ source 'https://rubygems.org'
17
17
  # Specify your gem's dependencies in fluent-plugin-kinesis.gemspec
18
18
  gemspec path: ".."
19
19
 
20
- gem "fluentd", ">= 0.12.35", "< 0.14"
20
+ # Specify related gems for td-agent v2.3.5
21
+ # https://github.com/treasure-data/omnibus-td-agent/blob/release-2.3.5/config/projects/td-agent2.rb#L23
22
+ gem "fluentd", "0.12.35"
23
+ # https://github.com/treasure-data/omnibus-td-agent/blob/release-2.3.5/plugin_gems.rb#L13-L15
24
+ gem "fluent-plugin-s3", "0.8.2"
25
+ gem "aws-sdk", "2.9.9"
@@ -76,13 +76,25 @@ module Fluent
76
76
 
77
77
  private
78
78
 
79
+ def aws_sdk_v2?
80
+ @aws_sdk_v2 ||= Gem.loaded_specs['aws-sdk-core'].version < Gem::Version.create('3')
81
+ end
82
+
79
83
  def client_class
80
84
  case request_type
81
85
  when :streams, :streams_aggregated
82
- require 'aws-sdk-kinesis'
86
+ if aws_sdk_v2?
87
+ require 'aws-sdk'
88
+ else
89
+ require 'aws-sdk-kinesis'
90
+ end
83
91
  Aws::Kinesis::Client
84
92
  when :firehose
85
- require 'aws-sdk-firehose'
93
+ if aws_sdk_v2?
94
+ require 'aws-sdk'
95
+ else
96
+ require 'aws-sdk-firehose'
97
+ end
86
98
  Aws::Firehose::Client
87
99
  end
88
100
  end
@@ -13,5 +13,5 @@
13
13
  # language governing permissions and limitations under the License.
14
14
 
15
15
  module FluentPluginKinesis
16
- VERSION = '2.0.0'
16
+ VERSION = '2.0.1'
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-kinesis
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-27 00:00:00.000000000 Z
11
+ date: 2017-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -31,33 +31,25 @@ dependencies:
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2'
33
33
  - !ruby/object:Gem::Dependency
34
- name: aws-sdk-kinesis
34
+ name: aws-sdk
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '1'
40
- type: :runtime
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
37
+ - - ">="
45
38
  - !ruby/object:Gem::Version
46
- version: '1'
47
- - !ruby/object:Gem::Dependency
48
- name: aws-sdk-firehose
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
39
+ version: 2.9.9
40
+ - - "<"
52
41
  - !ruby/object:Gem::Version
53
- version: '1'
42
+ version: '4'
54
43
  type: :runtime
55
44
  prerelease: false
56
45
  version_requirements: !ruby/object:Gem::Requirement
57
46
  requirements:
58
- - - "~>"
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 2.9.9
50
+ - - "<"
59
51
  - !ruby/object:Gem::Version
60
- version: '1'
52
+ version: '4'
61
53
  - !ruby/object:Gem::Dependency
62
54
  name: google-protobuf
63
55
  requirement: !ruby/object:Gem::Requirement
@@ -244,7 +236,7 @@ files:
244
236
  - Rakefile
245
237
  - benchmark/task.rake
246
238
  - fluent-plugin-kinesis.gemspec
247
- - gemfiles/Gemfile.fluentd-0.12
239
+ - gemfiles/Gemfile.td-agent-2.3.5
248
240
  - lib/fluent/plugin/kinesis.rb
249
241
  - lib/fluent/plugin/kinesis_helper/aggregator.rb
250
242
  - lib/fluent/plugin/kinesis_helper/api.rb