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 +4 -4
- data/lib/aws-sdk-rails.rb +9 -1
- data/lib/aws/rails/mailer.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c6f3ca6246615704132c2a690056d8c8636fd40947f756e79318affd6148720
|
4
|
+
data.tar.gz: e17f171dba5c857c58358a6e35d962b398ada43439c78c8e0df496ed342dd1ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61effb18895b3c4de7aa1cb8e44de99f5c497ac0ff996e5d74ae99af1b363dc634bb753e2c2160d437ede22988cdcb145b6683989864ee42b4cc029487649a0c
|
7
|
+
data.tar.gz: 3b7ebe7488bd432776e1c594dc0325b7d75a964276d7e5af1ab05bbb66f3139de581ccc8c77730d97d69b8b39d5ab0312cb9e5f1fb719b9c5da5f0ce9dde1c5b
|
data/lib/aws-sdk-rails.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/aws/rails/mailer.rb
CHANGED
@@ -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](
|
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
|
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:
|
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
|