lock ruby and gemset