updates rails to version 4.0.12 and most gems