Skip to content

A hook script to verify that only syntactically valid ruby code is commited.

License

Notifications You must be signed in to change notification settings

RubyOnWorld/git-ruby-syntax-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

DESCRIPTION

A hook script to verify that only syntactically valid ruby code is commited.

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, Git 1.7 or better

If Rubinius is installed and available via rbx, the hook will use it to test the Ruby files for warnings and errors.

SIMILAR PROJECTS

LICENSE

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

AUTHORS

Written by Markus Prinz, with contributions by Jérémy Lecour

About

A hook script to verify that only syntactically valid ruby code is commited.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages