drnic/ruby-tmbundle — pull request #18 by jlecour (2013-10-02 13:29:01+00:00)
Title: No verify on save

Sometimes I use files that contains snippets of Ruby code but it's not a valid Ruby script as a whole. However I want to have Ruby syntax highlighting.

Since I've mapped the "Validate and Save" command to `Cmd-S` in my Textmate, I was having parse error notifications constantly when saving such files, with a carret jump to the offending line.

So I've added an exit clause when a special comment is found on the first line : `no-verify`.
It's inspired by the Git flag `--no-verify` to bypass hooks.

It shouldn't really conflict with the encoding magic comment since it's intended to be used in invalid Ruby files.