Generalize ruby version.