Tuesday, July 21st, 2009

Stuck a fork in Clearance by Thoughtbot

I have just finished building my very own public ruby gem, tonkapark-clearance. In building the application for our land owners association I began using the Clearance gem by Thoughtbot. The gem is a simple Rails authentication with email & password. It worked right out of the box. I thought I would add my touch though so I didn't have to override half the gem with my own code.

With my little application I wanted to add invitations and an admin user. The invitations would allow signups to be restricted to invited users only. The admin was needed to manage the invitations and some other aspects of managing an application. So the forked version of clearance is ready to go. Simply run the gem command below or checkout the documentation on github to include it in your next rails project.

gem install tonkapark-clearance

You can check out the source code on Github.com.

This was my first real experience with GitHub.com and also with git. I was able to fork the existing project in the github interface.

I also found this helpful site for git and github: http://learn.github.com/

Some commands I don't need to forget.
git checkout branch_name --switch to branch
git branch --lists all branches
git branch new_branch_name --create new branch
git add -u --prepares for a commit of deleted files

Share and Enjoy:
  • Twitter
  • Facebook
  • StumbleUpon
  • Google Bookmarks
  • del.icio.us
  • Digg
  • LinkedIn
  • Technorati

Comments are closed.