aws-sdk-rails 4.0.2 → 4.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/aws/rails/railtie.rb +6 -7
  4. metadata +21 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b2a36be4e26aa7999922750428f26eb04b3b8c824ed1cc6179a98c3e6484f8d
4
- data.tar.gz: 4de349a64752e7e61edf461c84d80a474035579aba144ef1eef13f16607e819c
3
+ metadata.gz: f9f40f2c54fa1d003ca66738e34591efcc53d951bed78e78efcccb5b8a33758c
4
+ data.tar.gz: 6232d8200b719e7cb483a093c8e5b83e00197d80e49374d9209772f7097f9940
5
5
  SHA512:
6
- metadata.gz: 6a70a8509e17d875ca696518d52cfca863bdecbef8ee231884ad5508c9e0c018ce01e8867957a468438890d5e37176d78ac8a0213fc914644788cf4490e523ac
7
- data.tar.gz: 8097f4409f61dc35f5ade004a26231daf0b957b6223c50cfed5c610287da8bff757eb9b73a8d09e916900d1870eee038367d267a23545ed0c05f88c84bd724c3
6
+ metadata.gz: 32fcaa8266c130541fa7a8683caa51923ed94abc4796b64cbc01c4e8aca8665477c5afb0eca6a4a9285d69a1cc122fea200b8af5fbbe8d93924c58d852e9b634
7
+ data.tar.gz: 21ff141deab6d1fe9185679e51f476e86c6e4d324cf3d771324a8e94da1fd57f835d2f1c11d3d89acd862dd5ccd5a3668fa70af8a8e52b4654e9e8c6083f9840
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.2
1
+ 4.0.3
@@ -9,7 +9,7 @@ module Aws
9
9
  before: :load_config_initializers do
10
10
  # Initialization Actions
11
11
  Aws::Rails.use_rails_encrypted_credentials
12
- Aws::Rails.add_action_mailer_delivery_method(:ses)
12
+ Aws::Rails.add_action_mailer_delivery_method
13
13
  Aws::Rails.add_action_mailer_delivery_method(:sesv2)
14
14
  Aws::Rails.log_to_rails_logger
15
15
  end
@@ -32,15 +32,14 @@ module Aws
32
32
  # register, either :ses or :sesv2.
33
33
  # @param [Hash] client_options The options you wish to pass on to the
34
34
  # Aws::SES[V2]::Client initialization method.
35
- def self.add_action_mailer_delivery_method(name, client_options = {})
35
+ def self.add_action_mailer_delivery_method(name = :ses, client_options = {})
36
+ # TODO: on the next major version, add a "mailer" param to this method
37
+ # and use it to determine which mailer to use, keeping name free-form.
36
38
  ActiveSupport.on_load(:action_mailer) do
37
- case name
38
- when :ses
39
- add_delivery_method(name, Aws::Rails::SesMailer, client_options)
40
- when :sesv2
39
+ if name == :sesv2
41
40
  add_delivery_method(name, Aws::Rails::Sesv2Mailer, client_options)
42
41
  else
43
- raise ArgumentError, "Unknown action mailer delivery method: #{name}"
42
+ add_delivery_method(name, Aws::Rails::SesMailer, client_options)
44
43
  end
45
44
  end
46
45
  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: 4.0.2
4
+ version: 4.0.3
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: 2024-07-22 00:00:00.000000000 Z
11
+ date: 2024-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-record
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: aws-sessionstore-dynamodb
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: aws-sdk-s3
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -139,23 +153,12 @@ dependencies:
139
153
  - !ruby/object:Gem::Version
140
154
  version: 7.0.0
141
155
  - !ruby/object:Gem::Dependency
142
- name: aws-sessionstore-dynamodb
156
+ name: concurrent-ruby
143
157
  requirement: !ruby/object:Gem::Requirement
144
158
  requirements:
145
159
  - - "~>"
146
160
  - !ruby/object:Gem::Version
147
- version: '2'
148
- type: :runtime
149
- prerelease: false
150
- version_requirements: !ruby/object:Gem::Requirement
151
- requirements:
152
- - - "~>"
153
- - !ruby/object:Gem::Version
154
- version: '2'
155
- - !ruby/object:Gem::Dependency
156
- name: concurrent-ruby
157
- requirement: !ruby/object:Gem::Requirement
158
- requirements:
161
+ version: '1.3'
159
162
  - - ">="
160
163
  - !ruby/object:Gem::Version
161
164
  version: 1.3.1
@@ -163,6 +166,9 @@ dependencies:
163
166
  prerelease: false
164
167
  version_requirements: !ruby/object:Gem::Requirement
165
168
  requirements:
169
+ - - "~>"
170
+ - !ruby/object:Gem::Version
171
+ version: '1.3'
166
172
  - - ">="
167
173
  - !ruby/object:Gem::Version
168
174
  version: 1.3.1