update ruby and rails version,upgrade 2.0 and 4.0