Update templates/pre-commit-hook

fix `ruby: no code specified for -e (RuntimeError)` error
Merge pull request #51 from zzet/patch-1

Update templates/pre-commit-hook