Add git pre-commit hook for ruby

This pre-commit hook will always run tests before commit and
let you only commit if all test succeed