Skip to content

Commit

Permalink
Relocate ActiveJob and middleware (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp authored Nov 15, 2024
1 parent 122eb2a commit 6aed28d
Show file tree
Hide file tree
Showing 54 changed files with 557 additions and 1,937 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ gemfiles/*.gemfile.lock
sample-app/Gemfile.lock
sample-app/log
sample-app/tmp
sample-app.zip

test/dummy/db/migrate
test/dummy/log/
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ Unreleased Changes

* Feature - New namespace and class names for SES and SESV2 mailers. `Aws::Rails::SesMailer` has been moved to `Aws::ActionMailer::SES::Mailer` and `Aws::Rails::Sesv2Mailer` has been moved to `Aws::ActionMailer::SESV2::Mailer`. The classes have been symlinked for backwards compatibility in this major version.

* Issue - Add deprecation warning to `Aws::Rails.add_action_mailer_delivery_method` to instead use `ActionMailer::Base.add_delivery_method`. This method will be removed in the next major version.
* Issue - Add deprecation warning to `Aws::Rails.add_action_mailer_delivery_method` to instead use `ActionMailer::Base.add_delivery_method`. This method will be removed in aws-sdk-rails ~> 5.

* Feature - ActionMailbox SES ingress now lives in the `aws-actionmailbox-ses` gem.

* Issue - The `Aws::Rails::ActionMailbox::RSpec` module has been moved to `Aws::ActionMailbox::SES::RSpec` and will be removed in aws-sdk-rails ~> 5.

* Feature - ActiveJob SQS now lives in the `aws-activejob-sqs` gem.

* Feature - New namespace and class names for SQS ActiveJob. Existing namespace has temporarily been kept for backward compatibility and will be removed in aws-sdk-rails ~> 5.

4.1.0 (2024-09-27)
------------------

Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ gemspec
gem 'aws-actiondispatch-dynamodb', git: 'https://github.com/aws/aws-actiondispatch-dynamodb-ruby'
gem 'aws-actionmailbox-ses', git: 'https://github.com/aws/aws-actionmailbox-ses-ruby'
gem 'aws-actionmailer-ses', git: 'https://github.com/aws/aws-actionmailer-ses-ruby'
gem 'aws-activejob-sqs', git: 'https://github.com/aws/aws-activejob-sqs-ruby'

group :development, :test do
gem 'pry'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Gem Version](https://badge.fury.io/rb/aws-sdk-rails.svg)](https://badge.fury.io/rb/aws-sdk-rails)
[![Build Status](https://github.com/aws/aws-sdk-rails/workflows/CI/badge.svg)](https://github.com/aws/aws-sdk-rails/actions)
[![Github forks](https://img.shields.io/github/forks/aws/aws-sdk-rails.svg)](https://github.com/aws/aws-sdk-rails/network)
[![Github forks](https://img.shields.io/github/forks/aws/aws-sdk-rails.svg)](https://github.com/aws/aws-sdk-rails/network)
[![Github stars](https://img.shields.io/github/stars/aws/aws-sdk-rails.svg)](https://github.com/aws/aws-sdk-rails/stargazers)

A Ruby on Rails plugin that integrates AWS services with your application using
Expand Down
9 changes: 3 additions & 6 deletions aws-sdk-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,16 @@ Gem::Specification.new do |spec|
spec.description = 'Integrates the AWS SDK for Ruby with Ruby on Rails'
spec.homepage = 'https://github.com/aws/aws-sdk-rails'
spec.license = 'Apache-2.0'
spec.files = Dir['LICENSE.txt', 'CHANGELOG.md', 'VERSION', 'lib/**/*', 'bin/*']
spec.executables = ['aws_sqs_active_job']
spec.files = Dir['LICENSE.txt', 'CHANGELOG.md', 'VERSION', 'lib/**/*']

# These will be removed in aws-sdk-rails ~> 5
spec.add_dependency('aws-actiondispatch-dynamodb', '~> 0')
spec.add_dependency('aws-actionmailbox-ses', '~> 0')
spec.add_dependency('aws-actionmailer-ses', '~> 0')
spec.add_dependency('aws-record', '~> 2') # for Aws::Record integration
spec.add_dependency('aws-activejob-sqs', '~> 0')

# Require these versions for user_agent_framework configs
spec.add_dependency('aws-sdk-sqs', '~> 1', '>= 1.56.0') # for ActiveJob
spec.add_dependency('aws-record', '~> 2') # for Aws::Record integration

spec.add_dependency('concurrent-ruby', '~> 1.3', '>= 1.3.1') # Utilities for concurrent processing
spec.add_dependency('railties', '>= 7.1.0') # Minimum supported Rails version

spec.required_ruby_version = '>= 2.7'
Expand Down
6 changes: 0 additions & 6 deletions bin/aws_sqs_active_job

This file was deleted.

58 changes: 0 additions & 58 deletions lib/active_job/queue_adapters/sqs_adapter.rb

This file was deleted.

78 changes: 0 additions & 78 deletions lib/active_job/queue_adapters/sqs_adapter/params.rb

This file was deleted.

39 changes: 0 additions & 39 deletions lib/active_job/queue_adapters/sqs_async_adapter.rb

This file was deleted.

10 changes: 6 additions & 4 deletions lib/aws-sdk-rails.rb
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
# frozen_string_literal: true

require_relative 'aws/rails/middleware/elastic_beanstalk_sqsd'
require_relative 'aws/rails/railtie'
require_relative 'aws/rails/notifications'
require_relative 'aws/rails/sqs_active_job'
require_relative 'aws/rails/middleware/ebs_sqs_active_job_middleware'

# remove this in aws-sdk-rails 5
# remove these in aws-sdk-rails 5
require 'aws-actiondispatch-dynamodb'
require 'aws-actionmailbox-ses' if defined?(ActionMailbox::Engine)
require 'aws-actionmailer-ses'
require 'aws-activejob-sqs'

module Aws
module Rails
VERSION = File.read(File.expand_path('../VERSION', __dir__)).strip
end
end

# Remove these in aws-sdk-rails ~> 5
# remove these in aws-sdk-rails 5
Aws::Rails::SqsActiveJob = Aws::ActiveJob::SQS
Aws::Rails::EbsSqsActiveJobMiddleware = Aws::Rails::Middleware::ElasticBeanstalkSQSD
Aws::Rails::SesMailer = Aws::ActionMailer::SES::Mailer
Aws::Rails::Sesv2Mailer = Aws::ActionMailer::SESV2::Mailer
# This is for backwards compatibility after introducing support for SESv2.
Expand Down
118 changes: 0 additions & 118 deletions lib/aws/rails/middleware/ebs_sqs_active_job_middleware.rb

This file was deleted.

Loading

0 comments on commit 6aed28d

Please sign in to comment.