Skip to content

Commit

Permalink
build(deps): Unpin Faraday v1
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
  • Loading branch information
cosmo0920 committed Apr 3, 2023
1 parent 7c8ff50 commit 9774a1c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions fluent-plugin-opensearch.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ Gem::Specification.new do |s|
s.required_ruby_version = Gem::Requirement.new(">= 2.3".freeze)

s.add_runtime_dependency 'fluentd', '>= 0.14.22'
s.add_runtime_dependency 'excon', '>= 0'
s.add_runtime_dependency 'opensearch-ruby'
s.add_runtime_dependency "aws-sdk-core", "~> 3"
s.add_runtime_dependency "faraday", "~> 1.10"
s.add_runtime_dependency "faraday_middleware-aws-sigv4", "~> 0.6.1"
s.add_runtime_dependency 'excon', '>= 0'
s.add_runtime_dependency 'faraday', '>= 2.0.0'
s.add_runtime_dependency 'faraday-excon', '>= 2.0.0'
s.add_runtime_dependency "faraday_middleware-aws-sigv4", "~> 1.0.1"

s.add_development_dependency 'rake', '>= 0'
s.add_development_dependency 'webrick', '~> 1.7.0'
Expand Down
1 change: 1 addition & 0 deletions lib/fluent/plugin/in_opensearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

require 'opensearch'

require 'faraday/excon'
require 'fluent/log-ext'
require 'fluent/plugin/input'
require_relative 'opensearch_constants'
Expand Down
3 changes: 2 additions & 1 deletion lib/fluent/plugin/out_opensearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
end
require 'aws-sdk-core'
require 'faraday_middleware/aws_sigv4'
require 'faraday/excon'

module Fluent::Plugin
class OpenSearchOutput < Output
Expand Down Expand Up @@ -509,7 +510,7 @@ def backend_options
when :excon
{ client_key: @client_key, client_cert: @client_cert, client_key_pass: @client_key_pass, nonblock: @http_backend_excon_nonblock }
when :typhoeus
require 'typhoeus'
require 'faraday/typhoeus'
{ sslkey: @client_key, sslcert: @client_cert, keypasswd: @client_key_pass }
end
rescue LoadError => ex
Expand Down

0 comments on commit 9774a1c

Please sign in to comment.