Fix ruby syntax warnings (closes #7)