ST. PETERSBURG, Fla. -- Jeff Samardzija threw a four-hitter and the San Francisco Giants won their sixth consecutive game Friday by beating the Tampa Bay Rays 5-1 on Pride Night, before the biggest regular-season crowd at Tropicana Field in a decade.