aws-sdk-rails 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/aws/rails/action_mailbox/engine.rb +12 -12
- 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 +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b2a36be4e26aa7999922750428f26eb04b3b8c824ed1cc6179a98c3e6484f8d
|
4
|
+
data.tar.gz: 4de349a64752e7e61edf461c84d80a474035579aba144ef1eef13f16607e819c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a70a8509e17d875ca696518d52cfca863bdecbef8ee231884ad5508c9e0c018ce01e8867957a468438890d5e37176d78ac8a0213fc914644788cf4490e523ac
|
7
|
+
data.tar.gz: 8097f4409f61dc35f5ade004a26231daf0b957b6223c50cfed5c610287da8bff757eb9b73a8d09e916900d1870eee038367d267a23545ed0c05f88c84bd724c3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.0.
|
1
|
+
4.0.2
|
@@ -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
|
@@ -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.2
|
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-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-record
|
@@ -209,6 +209,7 @@ files:
|
|
209
209
|
- lib/aws/rails/railtie.rb
|
210
210
|
- lib/aws/rails/ses_mailer.rb
|
211
211
|
- lib/aws/rails/sesv2_mailer.rb
|
212
|
+
- lib/aws/rails/sqs_active_job.rb
|
212
213
|
- lib/aws/rails/sqs_active_job/configuration.rb
|
213
214
|
- lib/aws/rails/sqs_active_job/deduplication.rb
|
214
215
|
- lib/aws/rails/sqs_active_job/executor.rb
|
@@ -247,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
248
|
- !ruby/object:Gem::Version
|
248
249
|
version: '0'
|
249
250
|
requirements: []
|
250
|
-
rubygems_version: 3.5.
|
251
|
+
rubygems_version: 3.5.11
|
251
252
|
signing_key:
|
252
253
|
specification_version: 4
|
253
254
|
summary: AWS SDK for Ruby on Rails Plugin
|