While I appreciate the desire to bring rmate into the rubygem fold, it presents some difficulties.
Prior, I could install rmate into ~/bin on any machine I had ssh access to, quickly and easily by copying the guts of the script. This let me minimize my impact on remote machines that I needed to work on. (FWIW, I do most of my work on client machines of, let's say, older vintage, with extremely locked down environments. rmate is my secret sauce.)
Now, I find myself needing to install rubygems on the remote machine, just to keep working, and without admin access.
In the interest of retaining my remaining hair, what's the quick and dirty way of installing rmate on remote machines now, when one does not have admin rights to do a simple install of rubygems?
Failures:
% rmate mpp
/work/users/jsmith/bin/rmate:12:in `require': no such file to load -- rmate (LoadError)
from /work/users/jsmith/bin/rmate:12
[ install rubygems in ~/bin ]
% gem install rmate
/work/users/jsmith/bin/gem:8:in `require': no such file to load -- rubygems (LoadError)
from /work/users/jsmith/bin/gem:8
% printenv GEM_HOME
~/bin/gems/