Ruiz, Phillies break out late to beat Mets 10-6