README

Objective

This app is a rails API app that allows you to fetch commits from github. It uses the public Github API and if that fails it falls back to using the git CLI (checking out the project and running git log).

Setup

  • Checkout the project - git clone https://github.com/IvoPereira89/commit_list.git
  • Go into the directory - cd commit_list
  • Run bundle install

Run it

From inside the project directory:

Run tests

From inside the project directory:

  • Run rspec spec/ - this will run all tests

If you need to run a specific test file do

  • Run rspec {FILE_PATH}