Update gem dependencies for rails4