https://github.com/postmodern/ruby-install is a possible alternative to ruby-build. It's not clear which would be better, but it might be worth looking into