Update ruby version and add some necessary gems to the gemfile.