layout | title |
---|---|
default |
Contributing |
This project is intended to be a safe, welcoming space for collaboration. By participating in this project you agree to abide by the Contributor Code of Conduct.
Hi there! I'm thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
If you have any substantial changes that you would like to make, please open a discussion first to discuss them with me. If you've encountered a bug, please raise an issue instead.
When opening an issue to describe a bug, it's helpful to provide steps to reproduce it, either with failing tests in a pull request, or by sharing a repository that demonstrates the issue. Follow the installation instructions in the README to get started. If the problem is specific to Rails, you may want to use rails new --minimal
to make a barebones Rails app that replicates your failure.
Add as little code as possible that's necessary to reproduce the issue. If possible, use the original code that caused the issue in your application. Publish the repository and add a link to the bug report issue.
- Fork and clone the repository.
- Configure and install the dependencies:
bundle
. - Make sure the tests pass on your machine:
bundle exec rspec
. - Create a new branch:
git checkout -b my-branch-name
. - Add tests, then make the changes that will get those tests to pass.
- Add an entry to the top of
docs/CHANGELOG.md
for your changes, no matter how small they are. Every contribution makesNvar
just that little bit greater! - Push to your fork and submit a pull request.
- Pat yourself on the back and wait for your pull request to be reviewed and merged.
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
- Write tests.
- Keep your change as focused as possible. If there are multiple changes you would like to make that aren't dependent upon each other, consider submitting them as separate pull requests.
- Write a good commit message.
If you are the current maintainer of this gem:
- Run
rake release
.