Switch to ruby-mode on .rake, .gemspec and Gemfile

These are all files that contain Ruby code so it makes sense to switch to ruby-mode when opening them.

Please consider merging.