Skip to content

macteo/devise-dynamoid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamoid for Devise

Disclaimer: this is a work in progress, nothing is tested or working

devise-dynamoid will let you use devise with Dynamoid.

devise-dynamoid is intended for use with Rails 3.2.x and Devise 2 and above. It may work with earlier versions of devise.

This README only covers devise-dynamoid specifics. Make sure to read the devise README

Installation

Add devise, devise-dynamoid and dynamoid gems to your Gemfile (your Rails app Gemfile).

gem 'dynamoid'
gem 'devise'
gem 'devise-dynamoid'

Use bundler to install all required gems in your Rails 3 app

bundle install

Run the devise install generator, followed by the devise-dynamoid model generator:

rails generate devise:install
rails generate dynamoid:devise MODEL

The devise install generator will install an initializer (config/inititializer/devise.rb) which describes ALL Devise's configuration options and you MUST take a look at it. Maker sure this line exists:

require 'devise/orm/dynamoid'

NOTE: The model generator should do this automatically.

To add Devise to any of your models using the generator:

rails generate dynamoid:devise MODEL

Example: create a User model for use with Devise

rails generate dynamoid:devise User

Read the README for devise at devise README

Test Driven Development - extending this project

To develop on this project using TDD, requires the following setup. Clone this project into a container folder, fx /projects, so you have fx /projects/devise-dynamoid In the same container folder clone devise from github

Example:

git clone http://github.com/macteo/devise-dynamoid.git
git clone http://github.com/plataformatec/devise.git
cd devise-dynamoid
bundle install
rake test

Gem install

$ rake install

Gem release (push to RubyGems)

$ gem push pkg/devise-dynamoid-xxxx.gem

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Maintainers

Matteo Gavagnin

Also made suggestions for a few critical fixes and improvements in the code. Thanks :)

Bugs and Feedback

For devise-dynamoid specific issues, please create an issue on GitHub at: devise-dynamoid issues

Copyright

Copyright (c) 2013 Matteo Gavagnin. See LICENSE for details.

About

Test of DynamoId integration with Devise

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages