First, thank you for contributing!
We love pull requests from everyone. By participating in this project, you agree to abide by the code of conduct.
Here are a few technical guidelines to follow:
- Open an issue to discuss a new feature.
- Write tests.
- Make sure the entire test suite passes locally and on Codeship.
- Open a Pull Request.
- Squash your commits after receiving feedback.
- Party!
Please report suspected security vulnerabilities in private to [email protected]. Please do NOT create publicly viewable issues for suspected security vulnerabilities. Please refrain from requesting compensation for reporting vulnerabilities. We will acknowledge receipt of your vulnerability report and send you regular updates about our progress. If you want we will publicly acknowledge your responsible disclosure.
If you want to encrypt your disclosure email please email us to ask for our PGP key.
- Ruby 2.2.2
- Postgresql
- Redis
- PolarSSL
- osx:
$ brew install polarssl
- linux:
$ sudo apt-get install libpolarssl-dev
- osx:
- After cloning, run the setup script
$ bin/setup
- Clone the intercity/chef-repo repository.
- Make sure the data in
$ config/intercity.yml
is correct. - Start the vagrant server (needed to run some tests)
$ vagrant up
- To receive mail in development mode you have to install
mailcatcher.
$ gem install mailcatcher
- Start mailcatcher with
$ mailcatcher
- Go to
http://localhost:1080/
to see the received emails
We use minitest as the test suite, which is the default in Ruby 2 and Rails 4.
Run tests with: $ rake test
You can also run guard if you prefer: $ guard
To make sure the code is following our code guidelines, you can run rubocop
using: $ rubocop
.