jish/pre-commit — Issue #24: LoadError when upgrading your ruby version
Author: jish
Created: 2012-01-19 19:16:45+00:00
State: open

Scenario:

* You have a ruby (let's say 1.9.2) installed.
* You have a pre-commit hook installed.

Then:

* You upgrade your ruby version, and run bundle install
* You try to commit

You're greeted with this friendly message:

no such file to load -- pre-commit (LoadError)

It should either:

a.) silently fail and let you proceed with your commit
b.) display a warning message and let you proceed with your commit:

pre-commit: warning: you do not have the pre-commit gem installed, skipping the pre-commit check