Update to rails 4.2 and ruby 2.1.2