Updated dependencies to work with rails4