First of all, thanks for thinking of contributing to this project. 😄
Before sending a Pull Request, please make sure that you're assigned the task on a GitHub issue.
- If a relevant issue already exists, discuss on the issue and get it assigned to yourself on GitHub.
- If no relevant issue exists, open a new issue and get it assigned to yourself on GitHub.
Please proceed with a Pull Request only after you're assigned. It'd be sad if your Pull Request (and your hardwork) isn't accepted just because it isn't idealogically compatible.
-
Clone this repository and install all the required gem dependencies.
git clone https://github.com/athityakumar/networkx.rb.git cd networkx.rb gem install bundler bundle install
-
Checkout to a different git branch (say,
adds-new-feature
). -
Add any gem dependencies required, appropriately to the gemspec file or Gemfile.
-
Add code and YARD documentation.
-
Add tests to
spec/networkx/filename_spec.rb
. Add any files required for testing in thespec/fixtures/
directory. -
Run the rspec test-suite.
# Runs test suite for all files bundle exec rspec # Runs test-suite only for a particular file bundle exec rspec spec/networkx/filename_spec.rb
-
Run the rubocop for static code quality comments.
# Runs rubocop test for all files bundle exec rubocop # Runs rubocop test only for a particular file bundle exec rubocop lib/networkx/filename.rb
-
Send a Pull Request back to this repository. 🎉