Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Latest commit

 

History

History
41 lines (30 loc) · 1.84 KB

CONTRIBUTING.md

File metadata and controls

41 lines (30 loc) · 1.84 KB

Contributing

Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Submitting a pull request

  1. Fork and clone the repository
  2. Configure and install the dependencies: bundle install
  3. Make sure the tests pass on your machine: bundle exec rspec spec
  4. Create a new branch: git checkout -b my-branch-name
  5. Make your change, add tests, and make sure the tests still pass and that no warnings are raised
  6. Push to your fork and submit a pull request
  7. Pat your self 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 are not dependent upon each other, consider submitting them as separate pull requests.
  • Write a good commit message.

Releasing

  1. Ensure CI is green
  2. Pull the latest code
  3. Increment the version
  4. Run gem build secure_headers.gemspec
  5. Bump the Gemfile and Gemfile.lock versions for an app which relies on this gem
  6. Test behavior locally, branch deploy, whatever needs to happen
  7. Run bundle exec rake release

Resources