Wow. That seems... verbose. Should be something like:
```bash
wget -O- https://ruby.....latest.tar.gz | tar -xvzf -
cd ruby-* && ./configure && make && sudo make install
```