Ruby improvements

Open Gemfile in ruby-mode.

Use smartscan.