Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use aws-sdk v3 #17

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ begin
gemspec.has_rdoc = false
gemspec.require_paths = ["lib"]
gemspec.add_dependency "fluentd", ">= 0.10.0", "< 2"
gemspec.add_dependency "aws-sdk", "~> 2"
gemspec.add_dependency "aws-sdk-sns", "~> 1.5"
gemspec.test_files = Dir["test/**/*.rb"]
gemspec.files = Dir["lib/**/*", "test/**/*.rb"] + %w[VERSION AUTHORS Rakefile]
gemspec.executables = []
Expand Down
7 changes: 3 additions & 4 deletions fluent-plugin-sns.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@ Gem::Specification.new do |s|

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<fluentd>, ["< 2", ">= 0.10.0"])
s.add_runtime_dependency(%q<aws-sdk>, ["~> 2"])
s.add_runtime_dependency(%q<aws-sdk-sns>, ["~> 1.5"])
else
s.add_dependency(%q<fluentd>, ["< 2", ">= 0.10.0"])
s.add_dependency(%q<aws-sdk>, ["~> 2"])
s.add_dependency(%q<aws-sdk-sns>, ["~> 1.5"])
end
else
s.add_dependency(%q<fluentd>, ["< 2", ">= 0.10.0"])
s.add_dependency(%q<aws-sdk>, ["~> 2"])
s.add_dependency(%q<aws-sdk-sns>, ["~> 1.5"])
end
end

5 changes: 1 addition & 4 deletions lib/fluent/plugin/out_sns.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
require 'fluent/output'

require 'aws-sdk-sns'

module Fluent

require 'aws-sdk'

class SNSOutput < Output

Fluent::Plugin.register_output('sns', self)
Expand Down