1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
# Contributing
First, thanks for wanting to contribute. You’re awesome! :heart:
## Help
We’re not able to provide support through GitHub Issues. If you’re looking for help with your code, try posting on [Stack Overflow](https://stackoverflow.com/).
All features should be documented. If you don’t see a feature in the docs, assume it doesn’t exist.
## Bugs
Think you’ve discovered a bug?
1. Search existing issues to see if it’s been reported.
2. Try the `master` branch to make sure it hasn’t been fixed.
```rb
gem "groupdate", github: "ankane/groupdate"
```
If the above steps don’t help, create an issue. Include:
- Detailed steps to reproduce
- Complete backtraces for exceptions
## New Features
If you’d like to discuss a new feature, create an issue and start the title with `[Idea]`.
## Pull Requests
Fork the project and create a pull request. A few tips:
- Keep changes to a minimum. If you have multiple features or fixes, submit multiple pull requests.
- Follow the existing style. The code should read like it’s written by a single person.
- Add one or more tests if possible. Make sure existing tests pass with:
```sh
bundle exec rake test
```
Feel free to open an issue to get feedback on your idea before spending too much time on it.
## Dev Setup
On Mac:
```sh
# install and run PostgreSQL
brew install postgresql
brew services start postgresql
# install and run MySQL
brew install mysql
brew services start mysql
# create databases
createdb groupdate_test
mysqladmin create groupdate_test
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
# clone the repo and run the tests
git clone https://github.com/ankane/groupdate.git
cd groupdate
bundle install
bundle exec rake test
# run a single test file
ruby test/postgresql_test.rb
```
---
This contributing guide is released under [CCO](https://creativecommons.org/publicdomain/zero/1.0/) (public domain). Use it for your own project without attribution.
|