New Zealand batsman Jesse Ryder has been suspended for six months following an anti-doping violation.