Add required ruby version and add it in travis.