install Ruby and set global version