change ruby version and fixing gem not found bug