Updated dependencies for compatibility with Rails 4