aws-sdk-rails 3.0.5 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -0
  3. data/bin/aws_sqs_active_job +5 -0
  4. data/lib/action_dispatch/session/dynamodb_store.rb +32 -0
  5. data/lib/active_job/queue_adapters/amazon_sqs_adapter.rb +61 -0
  6. data/lib/active_job/queue_adapters/amazon_sqs_async_adapter.rb +38 -0
  7. data/lib/aws-sdk-rails.rb +13 -35
  8. data/lib/aws/rails/mailer.rb +1 -1
  9. data/lib/aws/rails/notifications.rb +33 -0
  10. data/lib/aws/rails/railtie.rb +68 -0
  11. data/lib/aws/rails/sqs_active_job/configuration.rb +163 -0
  12. data/lib/aws/rails/sqs_active_job/executor.rb +58 -0
  13. data/lib/aws/rails/sqs_active_job/job_runner.rb +22 -0
  14. data/lib/aws/rails/sqs_active_job/lambda_handler.rb +66 -0
  15. data/lib/aws/rails/sqs_active_job/poller.rb +136 -0
  16. data/lib/generators/aws_record/base.rb +217 -0
  17. data/lib/generators/aws_record/generated_attribute.rb +129 -0
  18. data/lib/generators/aws_record/model/USAGE +24 -0
  19. data/lib/generators/aws_record/model/model_generator.rb +21 -0
  20. data/lib/generators/aws_record/model/templates/model.rb +48 -0
  21. data/lib/generators/aws_record/model/templates/table_config.rb +18 -0
  22. data/lib/generators/aws_record/secondary_index.rb +60 -0
  23. data/lib/generators/dynamo_db/session_store_migration/USAGE +13 -0
  24. data/lib/generators/dynamo_db/session_store_migration/session_store_migration_generator.rb +46 -0
  25. data/lib/generators/dynamo_db/session_store_migration/templates/dynamo_db_session_store.yml +70 -0
  26. data/lib/generators/dynamo_db/session_store_migration/templates/session_store_migration.rb +9 -0
  27. data/lib/tasks/aws_record/migrate.rake +12 -0
  28. data/lib/tasks/dynamo_db/session_store.rake +8 -0
  29. metadata +89 -7
@@ -0,0 +1,12 @@
1
+ desc 'Run all table configs in table_config folder'
2
+ namespace :aws_record do
3
+ task migrate: :environment do
4
+ Dir[File.join('db', 'table_config', '**/*.rb')].each do |filename|
5
+ puts "running #{filename}"
6
+ require(File.expand_path(filename))
7
+
8
+ table_config = ModelTableConfig.config
9
+ table_config.migrate! unless table_config.compatible?
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,8 @@
1
+ namespace 'dynamo_db' do
2
+ namespace 'session_store' do
3
+ desc 'Clean up old sessions in the Amazon DynamoDB session store table.'
4
+ task clean: :environment do
5
+ Aws::SessionStore::DynamoDB::GarbageCollection.collect_garbage
6
+ end
7
+ end
8
+ end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-18 00:00:00.000000000 Z
11
+ date: 2021-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: aws-record
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: aws-sdk-ses
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -24,6 +38,34 @@ dependencies:
24
38
  - - "~>"
25
39
  - !ruby/object:Gem::Version
26
40
  version: '1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: aws-sdk-sqs
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: aws-sessionstore-dynamodb
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2'
27
69
  - !ruby/object:Gem::Dependency
28
70
  name: railties
29
71
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +80,20 @@ dependencies:
38
80
  - - ">="
39
81
  - !ruby/object:Gem::Version
40
82
  version: 5.2.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: concurrent-ruby
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1'
41
97
  - !ruby/object:Gem::Dependency
42
98
  name: rails
43
99
  requirement: !ruby/object:Gem::Requirement
@@ -54,19 +110,45 @@ dependencies:
54
110
  version: '0'
55
111
  description: Integrates the AWS Ruby SDK with Ruby on Rails
56
112
  email:
57
- - chejingy@amazon.com
58
113
  - mamuller@amazon.com
59
- executables: []
114
+ - alexwoo@amazon.com
115
+ executables:
116
+ - aws_sqs_active_job
60
117
  extensions: []
61
118
  extra_rdoc_files: []
62
119
  files:
120
+ - VERSION
121
+ - bin/aws_sqs_active_job
122
+ - lib/action_dispatch/session/dynamodb_store.rb
123
+ - lib/active_job/queue_adapters/amazon_sqs_adapter.rb
124
+ - lib/active_job/queue_adapters/amazon_sqs_async_adapter.rb
63
125
  - lib/aws-sdk-rails.rb
64
126
  - lib/aws/rails/mailer.rb
127
+ - lib/aws/rails/notifications.rb
128
+ - lib/aws/rails/railtie.rb
129
+ - lib/aws/rails/sqs_active_job/configuration.rb
130
+ - lib/aws/rails/sqs_active_job/executor.rb
131
+ - lib/aws/rails/sqs_active_job/job_runner.rb
132
+ - lib/aws/rails/sqs_active_job/lambda_handler.rb
133
+ - lib/aws/rails/sqs_active_job/poller.rb
134
+ - lib/generators/aws_record/base.rb
135
+ - lib/generators/aws_record/generated_attribute.rb
136
+ - lib/generators/aws_record/model/USAGE
137
+ - lib/generators/aws_record/model/model_generator.rb
138
+ - lib/generators/aws_record/model/templates/model.rb
139
+ - lib/generators/aws_record/model/templates/table_config.rb
140
+ - lib/generators/aws_record/secondary_index.rb
141
+ - lib/generators/dynamo_db/session_store_migration/USAGE
142
+ - lib/generators/dynamo_db/session_store_migration/session_store_migration_generator.rb
143
+ - lib/generators/dynamo_db/session_store_migration/templates/dynamo_db_session_store.yml
144
+ - lib/generators/dynamo_db/session_store_migration/templates/session_store_migration.rb
145
+ - lib/tasks/aws_record/migrate.rake
146
+ - lib/tasks/dynamo_db/session_store.rake
65
147
  homepage: https://github.com/aws/aws-sdk-rails
66
148
  licenses:
67
149
  - Apache-2.0
68
150
  metadata: {}
69
- post_install_message:
151
+ post_install_message:
70
152
  rdoc_options: []
71
153
  require_paths:
72
154
  - lib
@@ -82,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
164
  version: '0'
83
165
  requirements: []
84
166
  rubygems_version: 3.0.3
85
- signing_key:
167
+ signing_key:
86
168
  specification_version: 4
87
169
  summary: AWS SDK for Ruby on Rails Plugin
88
170
  test_files: []