Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
# git pre-commit hook
#
# This will ensure 100% code coverage and all specs passing before allowing a commit
# to the git repo.
#
# Place the file at .git/hooks/pre-commit and use chmod a+x to make it executable.
system('rake clean >/dev/null 2>&1')