Update gem file to install the right versions of rails gems.