DynamodDB adapter for DataMapper. Support only API verions: 2012-08-10
Add this line to your application's Gemfile:
gem 'dm-dynamodb-adapter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install dm-dynamodb-adapter
In initializer or configuration file please fill crendetials:
DataMapper::Dynamodb::Config.setup do |config|
config.aws_access_key = ENV['AWS_ACCESS_KEY_ID']
config.aws_secret_key = ENV['AWS_SECRET_ACCESS_KEY']
config.aws_region = ENV['AWS_REGION']
config.api_version = ENV['API_VERSION']
end
Export your test db credentials or use dotenv:
export AWS_ACCESS_KEY_ID='...'
export AWS_SECRET_ACCESS_KEY='...'
export AWS_REGION='...'
export API_VERSION='...'
Run: rspec spec
to check if tests are passing.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request