Let's make life easier for people who have lots of Git branches.
Found a bug or have a suggestion? Please open an issue or ping @ronalddevera on Twitter.
If you want to hack on some code, even better! Here are the basics:
- If you plan to work on a large feature or bug fix, first open an issue first to discuss whether you're on the right track. If you're working on something small, go right ahead.
- Fork the Twig repo.
- Check out the
development
branch; themaster
branch is for stable builds only. - Run the tests to make sure that they pass on your machine:
bundle && rake
- Add one or more failing tests for your feature or bug fix.
- Write your feature or bug fix to make the test(s) pass.
- Tests should pass for the Ruby versions listed in .travis.yml, which you can confirm with rvm or rbenv.
- Keep the branch focused on a single topic, rather than covering multiple features or bug fixes in a single branch. This makes branches quicker to review and merge.
- Test the change manually:
gem build twig.gemspec
gem install twig-x.y.z.gem
(fill in the current version number)
- Push to your fork and submit a pull request.
Thanks for contributing!