Make changes necessary for Rails 4, update Ruby version