function to get ruby version