aws-sdk-rails 3.0.5 → 3.1.0

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
  SHA256:
3
- metadata.gz: 65b9f52f5df1206d26fba5177b30724fb5f0aa66d7888966f533b42dfbba3187
4
- data.tar.gz: 215f61a38c9be614103f56c71f83593e6844b2edd266c16b277a2f5e8d56b01e
3
+ metadata.gz: 6c6f3ca6246615704132c2a690056d8c8636fd40947f756e79318affd6148720
4
+ data.tar.gz: e17f171dba5c857c58358a6e35d962b398ada43439c78c8e0df496ed342dd1ef
5
5
  SHA512:
6
- metadata.gz: 6f216cd5d536b69c872d1332b89bac9fb086ccfd8fe4abd276b971d7ca4ada38d166e66d91ddfd045de4d1dab429acb497d2ca599d38f5ac2b754760fbdb03fd
7
- data.tar.gz: c36a45d9ff981b78bf0c0dfa86189522a05ff5b9a8c6b3abcc9ab95c73861d785bb81705336fb11eed3c5c58bfe79c9bb6dda9f3bfdc3a4c7cb01a22397d70f2
6
+ metadata.gz: 61effb18895b3c4de7aa1cb8e44de99f5c497ac0ff996e5d74ae99af1b363dc634bb753e2c2160d437ede22988cdcb145b6683989864ee42b4cc029487649a0c
7
+ data.tar.gz: 3b7ebe7488bd432776e1c594dc0325b7d75a964276d7e5af1ab05bbb66f3139de581ccc8c77730d97d69b8b39d5ab0312cb9e5f1fb719b9c5da5f0ce9dde1c5b
@@ -37,7 +37,15 @@ module Aws
37
37
 
38
38
  # Configures the AWS SDK with credentials from Rails encrypted credentials.
39
39
  def self.use_rails_encrypted_credentials
40
- Aws.config.merge!(::Rails.application.try(:credentials).try(:aws).to_h)
40
+ # limit the config keys we merge to credentials only
41
+ aws_credential_keys = %i[access_key_id secret_access_key session_token]
42
+
43
+ Aws.config.merge!(
44
+ ::Rails.application
45
+ .try(:credentials)
46
+ .try(:aws)
47
+ .to_h.slice(*aws_credential_keys)
48
+ )
41
49
  end
42
50
  end
43
51
  end
@@ -17,7 +17,7 @@ module Aws
17
17
  # client instance.
18
18
  class Mailer
19
19
  # @param [Hash] options Passes along initialization options to
20
- # [Aws::SES::Client.new](http://docs.aws.amazon.com/sdkforruby/api/Aws/SES/Client.html#initialize-instance_method).
20
+ # [Aws::SES::Client.new](https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SES/Client.html#initialize-instance_method).
21
21
  def initialize(options = {})
22
22
  @client = SES::Client.new(options)
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.1.0
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: 2019-10-18 00:00:00.000000000 Z
11
+ date: 2020-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-ses