Ruby update, generalization fixes