ruby update and indentation fixes