Checking out the source
The Subversion repository resides at http://dev.michaux.ca/svn/fork
Check out the current development version of the Fork JavaScript files:
svn co http://dev.michaux.ca/svn/fork/trunk/public/javascripts/fork
Check out the current development version of the Fork plug-in for Ruby on Rails:
svn co http://dev.michaux.ca/svn/fork/trunk/vendor/plugins/fork
Check out the current development version of the entire Fork site including the JavaScript. This is a Rails application with all the Fork test pages included.
svn co http://dev.michaux.ca/svn/fork/trunk
Tags are just where you would expect them to be
http://dev.michaux.ca/svn/fork/tags/
Creating a patch
Tickets are fine, but patches are great. If you want to modify Fork or fix a bug you've run across, there's no faster way to make it happen than to do it yourself. You can submit patches to any aspect of this project but the priority is that code standards will be kept high in preference to new features being added. Please keep patches small and focused.
- Get Fork ready for patching
- Check out the latest version of the Fork site: svn co http://dev.michaux.ca/svn/fork/trunk
- Fire up the Rails app
- Ensure that the existing tests pages pass.
- Make a test-driven change
- Share your well-tested change
- Sanity check the changes you've made: svn status
- Create a patch: svn diff > my_descriptively_named_patch.diff
- Create a new ticket with [PATCH] as the first word in the summary. Attach your patch file.
- Keep an eye on the ticket and address concerns that arise. Make your change hard not to commit.
- Bask in the glory of being a Fork contributor!
Source style
- Two spaces, no tabs
- Follow the conventions you see used in the source already
- Try to stay close to Douglas Crockford's JavaScript Code Conventions
This page adapted from http://dev.rubyonrails.org
