rewrite the textmate hook to wrap only when new ruby is used, fix #2725