Update dependencies to be compatible with Rails 4.0