Change the gem dependencies for rails 4