Install Ruby.

yum install ruby

Install Ruby dependencies.

yum install gcc g++ make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel
yum install ruby-rdoc ruby-devel

Install Ruby Gems.

yum install rubygems

Done.