change gems versions for rails 4