Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relocate ActionDispatch DynamoDB #161

Merged
merged 6 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ source 'https://rubygems.org'

gemspec

gem 'aws-actiondispatch-dynamodb', git: 'https://github.com/aws/aws-actiondispatch-dynamodb-ruby', branch: 'init'
gem 'aws-actionmailer-ses', git: 'https://github.com/aws/aws-actionmailer-ses-ruby'

group :development, :test do
Expand Down
2 changes: 1 addition & 1 deletion aws-sdk-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
# These will be removed in aws-sdk-rails ~> 5
spec.add_dependency('aws-actionmailer-ses', '~> 0')
spec.add_dependency('aws-record', '~> 2') # for Aws::Record integration
spec.add_dependency('aws-sessionstore-dynamodb', '~> 3') # includes DynamoDB
spec.add_dependency('aws-actiondispatch-dynamodb', '~> 0')

# Require these versions for user_agent_framework configs
spec.add_dependency('aws-sdk-s3', '~> 1', '>= 1.123.0')
Expand Down
72 changes: 0 additions & 72 deletions lib/action_dispatch/session/dynamo_db_store.rb

This file was deleted.

4 changes: 1 addition & 3 deletions lib/aws-sdk-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
require_relative 'aws/rails/middleware/ebs_sqs_active_job_middleware'

# remove this in aws-sdk-rails 5
require 'aws-sessionstore-dynamodb'
require 'aws-actiondispatch-dynamodb'
require 'aws-actionmailer-ses'

require_relative 'action_dispatch/session/dynamo_db_store' if defined?(Aws::SessionStore::DynamoDB::RackMiddleware)

module Aws
module Rails
VERSION = File.read(File.expand_path('../VERSION', __dir__)).strip
Expand Down
2 changes: 1 addition & 1 deletion lib/aws/rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Railtie < ::Rails::Railtie
end

rake_tasks do
load 'tasks/dynamo_db/session_store.rake' if defined?(Aws::SessionStore::DynamoDB)
load 'tasks/dynamo_db/session_store.rake' if defined?(Aws::ActionDispatch::DynamoDb)
load 'tasks/aws_record/migrate.rake' if defined?(Aws::Record)
end
end
Expand Down
16 changes: 0 additions & 16 deletions lib/generators/dynamo_db/session_store_config/USAGE

This file was deleted.

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions lib/generators/dynamo_db/session_store_migration/USAGE

This file was deleted.

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions lib/tasks/dynamo_db/session_store.rake

This file was deleted.

71 changes: 0 additions & 71 deletions test/action_dispatch/session/dynamo_db_store_test.rb

This file was deleted.

Loading
Loading