Fix ruby syntax errors identified by travis CI build failure