update gem dependency for rails 4