aws-actiondispatch-dynamodb 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/VERSION +1 -1
- data/lib/action_dispatch/session/dynamo_db_store.rb +4 -28
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ea24edf7d7f3b6233085db8656c74124cc65b5f2514cad1f4395aa0381b6ced
|
4
|
+
data.tar.gz: e1e4369af0d572cf2b420507f35204bc17f8d7235c26003acc333b313c047ab1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8da29a4732c6d89acdea9ecd09fa6fa82e58eb1f92a145ca46ae510747eae6deda7ce6711108771e79af36ba711a839aa4801983c50a019f9f54d606b1b4f77f
|
7
|
+
data.tar.gz: e7d14a9583cee4f2eabf5a8152798995f0094cae1366a9da32be298fc15a962a210a91807e30730d927335e9e042c3a5d4ea29a461bdd029bade60d8bfb08cfd
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
1.0.0 (2024-11-21)
|
2
|
+
------------------
|
3
|
+
|
4
|
+
* Feature - [Major Version] Bump major version to 1.0.0.
|
5
|
+
|
6
|
+
* Issue - Drop support for any non-aws prefixed configuration keys.
|
7
|
+
|
8
|
+
* Issue - Drop support for the `:dynamodb_store` configuration name.
|
9
|
+
|
1
10
|
0.2.0 (2024-11-17)
|
2
11
|
------------------
|
3
12
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
1.0.0
|
@@ -13,15 +13,13 @@ module ActionDispatch
|
|
13
13
|
# unless otherwise provided.
|
14
14
|
#
|
15
15
|
# Configuration can also be provided in YAML files from Rails config, either
|
16
|
-
# in `config/
|
16
|
+
# in `config/aws_dynamo_db_session_store.yml` or
|
17
|
+
# `config/aws_dynamo_db_session_store/{Rails.env}.yml`.
|
17
18
|
# Configuration files that are environment-specific will take precedence.
|
18
19
|
#
|
19
20
|
# @see https://docs.aws.amazon.com/sdk-for-ruby/aws-sessionstore-dynamodb/api/Aws/SessionStore/DynamoDB/Configuration.html
|
20
21
|
class DynamoDbStore < ActionDispatch::Session::AbstractStore
|
21
22
|
def initialize(app, options = {})
|
22
|
-
Rails.logger.warn('** Dynamo DB Session Storage no longer lives in aws-sdk-rails. ' \
|
23
|
-
'To avoid disruption, please add aws-actiondispatch-dynamodb ~> 0 to your Gemfile to ' \
|
24
|
-
'enable this feature when upgrading to aws-sdk-rails ~> 5. **')
|
25
23
|
options[:config_file] ||= config_file
|
26
24
|
options[:secret_key] ||= Rails.application.secret_key_base
|
27
25
|
@middleware = Aws::SessionStore::DynamoDB::RackMiddleware.new(app, options)
|
@@ -51,34 +49,12 @@ module ActionDispatch
|
|
51
49
|
@middleware.delete_session(req, sid, options)
|
52
50
|
end
|
53
51
|
|
54
|
-
# rubocop:disable Metrics
|
55
52
|
def config_file
|
56
53
|
file = ENV.fetch('AWS_DYNAMO_DB_SESSION_CONFIG_FILE', nil)
|
57
|
-
file ||= Rails.root.join("config/
|
58
|
-
file = Rails.root.join('config/
|
59
|
-
if File.exist?(file)
|
60
|
-
Rails.logger.warn('The dynamo_db_session_store configuration file has been renamed.' \
|
61
|
-
'Please use aws_dynamo_db_session_store/<Rails.env>.yml or ' \
|
62
|
-
'aws_dynamo_db_session_store.yml. This will be removed in ' \
|
63
|
-
'aws-actiondispatch-dynamodb ~> 1')
|
64
|
-
else
|
65
|
-
file = Rails.root.join("config/aws_dynamo_db_session_store/#{Rails.env}.yml")
|
66
|
-
file = Rails.root.join('config/aws_dynamo_db_session_store.yml') unless File.exist?(file)
|
67
|
-
end
|
68
|
-
|
54
|
+
file ||= Rails.root.join("config/aws_dynamo_db_session_store/#{Rails.env}.yml")
|
55
|
+
file = Rails.root.join('config/aws_dynamo_db_session_store.yml') unless File.exist?(file)
|
69
56
|
file if File.exist?(file)
|
70
57
|
end
|
71
58
|
end
|
72
|
-
# rubocop:enable Metrics
|
73
|
-
|
74
|
-
# @api private
|
75
|
-
class DynamodbStore < DynamoDbStore
|
76
|
-
def initialize(app, options = {})
|
77
|
-
Rails.logger.warn('** Session Store :dynamodb_store configuration key has been renamed to :dynamo_db_store, ' \
|
78
|
-
'please use the new key instead. The :dynamodb_store key name will be removed in ' \
|
79
|
-
'aws-actiondispatch-dynamodb ~> 1 **')
|
80
|
-
super
|
81
|
-
end
|
82
|
-
end
|
83
59
|
end
|
84
60
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-actiondispatch-dynamodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
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-11-
|
11
|
+
date: 2024-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sessionstore-dynamodb
|