lib/httpx/plugins/aws_sdk_authentication.rb in httpx-0.13.2 vs lib/httpx/plugins/aws_sdk_authentication.rb in httpx-0.14.0

- old
+ new

@@ -30,13 +30,12 @@ end class << self attr_reader :credentials, :region - def load_dependencies(klass) + def load_dependencies(_klass) require "aws-sdk-core" - klass.plugin(:aws_sigv4) client = Class.new(Seahorse::Client::Base) do @identifier = :httpx set_api(Aws::S3::ClientApi::API) add_plugin(Aws::Plugins::CredentialsConfiguration) @@ -46,9 +45,13 @@ end end.new @credentials = Credentials.new(client.config[:credentials]) @region = client.config[:region] + end + + def configure(klass) + klass.plugin(:aws_sigv4) end def extra_options(options) options.merge(max_concurrent_requests: 1) end