upgrade the ruby version from 1.9.2 to 2.1.2, and relative gems