aws-actiondispatch-dynamodb 0.2.0 → 1.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ec7a82eaabf2cab0011fd0781943c4c00b399e5e309e029698acbcd329fb953
4
- data.tar.gz: e289f8137a2dfef366204b3e985a59807f2b523a404e87c1628cda64faada2d5
3
+ metadata.gz: 0ea24edf7d7f3b6233085db8656c74124cc65b5f2514cad1f4395aa0381b6ced
4
+ data.tar.gz: e1e4369af0d572cf2b420507f35204bc17f8d7235c26003acc333b313c047ab1
5
5
  SHA512:
6
- metadata.gz: aa1f348f46a757c1b34372f72ed7e89ed33f8601c73254881365cd8af18b8101f856b64f647b7e2ddd6e19af1312ef74b1c493bd964131e1ff9d54b8348118a5
7
- data.tar.gz: c9546ba10853ce153787a98c75a2927028f3fbec1f1dfe5f7492b0648cea8fc901be6eebdb40c8ac25479e746a45914b3a9f902a238ad9c3942878295ee5ab29
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.2.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/dynamo_db_session_store.yml` or `config/dynamo_db_session_store/{Rails.env}.yml`.
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/dynamo_db_session_store/#{Rails.env}.yml")
58
- file = Rails.root.join('config/dynamo_db_session_store.yml') unless File.exist?(file)
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.2.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-17 00:00:00.000000000 Z
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