learn remote bu write a ruby gem