add function to create ruby-version and gemset files