aws-sdk-rails 4.0.1 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/aws/rails/action_mailbox/engine.rb +12 -12
- data/lib/aws/rails/railtie.rb +6 -7
- data/lib/aws/rails/sqs_active_job/configuration.rb +0 -14
- data/lib/aws/rails/sqs_active_job.rb +33 -0
- data/lib/aws-sdk-rails.rb +1 -8
- metadata +23 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9f40f2c54fa1d003ca66738e34591efcc53d951bed78e78efcccb5b8a33758c
|
4
|
+
data.tar.gz: 6232d8200b719e7cb483a093c8e5b83e00197d80e49374d9209772f7097f9940
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32fcaa8266c130541fa7a8683caa51923ed94abc4796b64cbc01c4e8aca8665477c5afb0eca6a4a9285d69a1cc122fea200b8af5fbbe8d93924c58d852e9b634
|
7
|
+
data.tar.gz: 21ff141deab6d1fe9185679e51f476e86c6e4d324cf3d771324a8e94da1fd57f835d2f1c11d3d89acd862dd5ccd5a3668fa70af8a8e52b4654e9e8c6083f9840
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.0.
|
1
|
+
4.0.3
|
@@ -1,18 +1,18 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
if defined?(ActionMailbox::Engine)
|
4
|
+
module Aws
|
5
|
+
module Rails
|
6
|
+
module ActionMailbox
|
7
|
+
# @api private
|
8
|
+
class Engine < ::Rails::Engine
|
9
|
+
config.action_mailbox.ses = ActiveSupport::OrderedOptions.new
|
10
|
+
config.action_mailbox.ses.s3_client_options ||= {}
|
4
11
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
class Engine < ::Rails::Engine
|
10
|
-
config.action_mailbox.ses = ActiveSupport::OrderedOptions.new
|
11
|
-
config.action_mailbox.ses.s3_client_options ||= {}
|
12
|
-
|
13
|
-
initializer 'aws-sdk-rails.mount_engine' do |app|
|
14
|
-
app.routes.append do
|
15
|
-
mount Engine => '/'
|
12
|
+
initializer 'aws-sdk-rails.mount_engine' do |app|
|
13
|
+
app.routes.append do
|
14
|
+
mount Engine => '/'
|
15
|
+
end
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
data/lib/aws/rails/railtie.rb
CHANGED
@@ -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
|
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
|
-
|
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
|
-
|
42
|
+
add_delivery_method(name, Aws::Rails::SesMailer, client_options)
|
44
43
|
end
|
45
44
|
end
|
46
45
|
end
|
@@ -4,20 +4,6 @@ module Aws
|
|
4
4
|
module Rails
|
5
5
|
# Configuration for AWS SQS ActiveJob.
|
6
6
|
module SqsActiveJob
|
7
|
-
# @return [Configuration] the (singleton) Configuration
|
8
|
-
def self.config
|
9
|
-
@config ||= Configuration.new
|
10
|
-
end
|
11
|
-
|
12
|
-
# @yield Configuration
|
13
|
-
def self.configure
|
14
|
-
yield(config)
|
15
|
-
end
|
16
|
-
|
17
|
-
def self.fifo?(queue_url)
|
18
|
-
queue_url.ends_with? '.fifo'
|
19
|
-
end
|
20
|
-
|
21
7
|
# Use +Aws::Rails::SqsActiveJob.config+ to access the singleton config instance.
|
22
8
|
class Configuration
|
23
9
|
# Default configuration options
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative '../../active_job/queue_adapters/sqs_adapter'
|
4
|
+
require_relative '../../active_job/queue_adapters/sqs_adapter/params'
|
5
|
+
require_relative '../../active_job/queue_adapters/sqs_async_adapter'
|
6
|
+
require_relative 'sqs_active_job/configuration'
|
7
|
+
require_relative 'sqs_active_job/deduplication'
|
8
|
+
require_relative 'sqs_active_job/executor'
|
9
|
+
require_relative 'sqs_active_job/job_runner'
|
10
|
+
require_relative 'sqs_active_job/lambda_handler'
|
11
|
+
|
12
|
+
module Aws
|
13
|
+
module Rails
|
14
|
+
# == AWS SQS ActiveJob.
|
15
|
+
#
|
16
|
+
# SQS-based queuing backend for Active Job.
|
17
|
+
module SqsActiveJob
|
18
|
+
# @return [Configuration] the (singleton) Configuration
|
19
|
+
def self.config
|
20
|
+
@config ||= Configuration.new
|
21
|
+
end
|
22
|
+
|
23
|
+
# @yield Configuration
|
24
|
+
def self.configure
|
25
|
+
yield(config)
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.fifo?(queue_url)
|
29
|
+
queue_url.ends_with? '.fifo'
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/lib/aws-sdk-rails.rb
CHANGED
@@ -5,17 +5,10 @@ require_relative 'aws/rails/sesv2_mailer'
|
|
5
5
|
require_relative 'aws/rails/railtie'
|
6
6
|
require_relative 'aws/rails/action_mailbox/engine'
|
7
7
|
require_relative 'aws/rails/notifications'
|
8
|
-
require_relative 'aws/rails/sqs_active_job
|
9
|
-
require_relative 'aws/rails/sqs_active_job/deduplication'
|
10
|
-
require_relative 'aws/rails/sqs_active_job/executor'
|
11
|
-
require_relative 'aws/rails/sqs_active_job/job_runner'
|
12
|
-
require_relative 'aws/rails/sqs_active_job/lambda_handler'
|
8
|
+
require_relative 'aws/rails/sqs_active_job'
|
13
9
|
require_relative 'aws/rails/middleware/ebs_sqs_active_job_middleware'
|
14
10
|
|
15
11
|
require_relative 'action_dispatch/session/dynamodb_store'
|
16
|
-
require_relative 'active_job/queue_adapters/sqs_adapter'
|
17
|
-
require_relative 'active_job/queue_adapters/sqs_adapter/params'
|
18
|
-
require_relative 'active_job/queue_adapters/sqs_async_adapter'
|
19
12
|
|
20
13
|
require_relative 'generators/aws_record/base'
|
21
14
|
|
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.
|
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-
|
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:
|
156
|
+
name: concurrent-ruby
|
143
157
|
requirement: !ruby/object:Gem::Requirement
|
144
158
|
requirements:
|
145
159
|
- - "~>"
|
146
160
|
- !ruby/object:Gem::Version
|
147
|
-
version: '
|
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
|
@@ -209,6 +215,7 @@ files:
|
|
209
215
|
- lib/aws/rails/railtie.rb
|
210
216
|
- lib/aws/rails/ses_mailer.rb
|
211
217
|
- lib/aws/rails/sesv2_mailer.rb
|
218
|
+
- lib/aws/rails/sqs_active_job.rb
|
212
219
|
- lib/aws/rails/sqs_active_job/configuration.rb
|
213
220
|
- lib/aws/rails/sqs_active_job/deduplication.rb
|
214
221
|
- lib/aws/rails/sqs_active_job/executor.rb
|
@@ -247,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
254
|
- !ruby/object:Gem::Version
|
248
255
|
version: '0'
|
249
256
|
requirements: []
|
250
|
-
rubygems_version: 3.5.
|
257
|
+
rubygems_version: 3.5.11
|
251
258
|
signing_key:
|
252
259
|
specification_version: 4
|
253
260
|
summary: AWS SDK for Ruby on Rails Plugin
|