Tidal disruptions of rotating stars by a supermassive black hole