[COOK-2370] changed Ruby syntax to preferred unless, normalized spacing to 2 spaces for indentation