Generate ruby version with less memory.