update Ruby version to 2.1.1 and Rails to 4.0.4