jlecour / git-ruby-syntax-check forked from cypher/git-ruby-syntax-check

Checks the syntax of all changed ruby files is valid before allowing a commit

This URL has Read+Write access

name age message
file LICENCE Loading commit data...
file README.md
file pre-commit
README.md

DESCRIPTION

A hook script to verify that only syntactically valid ruby code is commited. Called by git-commit with no arguments. The hook should exit with non-zero status after issuing an appropriate message if it wants to stop the commit.

INSTALLATION

Put this code into a file called "pre-commit" inside your .git/hooks directory, and make sure it is executable ("chmod +x .git/hooks/pre-commit")

REQUIREMENTS

Requires Ruby 1.8.6 or better

Tested only with Git 1.6.4-rc1, but should work with any Git 1.6.* If you're running it with any other versions of Git, I'd love to hear from your experiences (both successes and failures)

LICENSE

Licensed under the MIT License. See LICENSE file for details.