Skip to content

Commit c48e801

Browse files
committed
Add railtie and yardopts
1 parent 3c71e29 commit c48e801

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

.rubocop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ AllCops:
22
NewCops: enable
33
TargetRubyVersion: 2.7
44
SuggestExtensions: false
5+
Exclude:
6+
- 'tasks/release/**/*'
57

68
Gemspec/RequireMFA:
79
Enabled: false

.yardopts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--title 'ActionDispatch DynamoDB'
2+
--template-path doc-src/templates
3+
--plugin sitemap
4+
--hide-api private

aws-actiondispatch-dynamodb.gemspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ Gem::Specification.new do |spec|
1313
spec.license = 'Apache-2.0'
1414
spec.files = Dir['LICENSE', 'CHANGELOG.md', 'VERSION', 'lib/**/*']
1515

16-
spec.add_dependency('actionpack', '>= 7.1.0')
1716
spec.add_dependency('aws-sessionstore-dynamodb', '~> 3')
1817

18+
spec.add_dependency('railties', '>= 7.1.0')
19+
spec.add_dependency('actionpack', '>= 7.1.0')
20+
1921
spec.required_ruby_version = '>= 2.7'
2022
end

lib/aws-actiondispatch-dynamodb.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ module Aws
66
module ActionDispatch
77
module DynamoDb
88
VERSION = File.read(File.expand_path('../VERSION', __dir__)).strip
9+
10+
class Railtie < ::Rails::Railtie
11+
rake_tasks do
12+
load 'tasks/dynamo_db/session_store.rake'
13+
end
14+
end
915
end
1016
end
1117
end

0 commit comments

Comments
 (0)