$ sudo yum update
$ cd /tmp
$ wget https://packages.endpoint.com/endpoint-rpmsign.pub
$ sudo rpm --import endpoint-rpmsign.pub
$ sudo yum remove ruby*
$ wget https://packages.endpoint.com/rhel/5/os/i386/ruby-enterprise-1.8.6-5.ep.i386.rpm
$ sudo rpm -ivh ruby-enterprise-1.8.6-5.ep.i386.rpm
$ wget https://packages.endpoint.com/rhel/5/os/i386/ruby-enterprise-rubygems-1.3.2-5.ep.i386.rpm
$ sudo rpm -ivh ruby-enterprise-rubygems-1.3.2-5.ep.i386.rpm