Update ruby to a higher version in Centos 7

yum --enablerepo=centos-sclo-rh -y install rh-ruby27
scl enable rh-ruby27 bash