added filename hooks for ruby-mode
fixed ruby-mode function