Update to Rails 3.1.12 to fix security issues.
Use https rubygems.