Darin Ruf hit two homers and drove in four runs, Joc Pederson added two hits and two RBIs, and Jakob Junis won his third straight decision as the San Francisco Giants beat the Los Angeles Dodgers 7-2 Friday night. Junis (4-1) worked five innings and yielded two runs and five hits, including Gavin Lux's fifth-inning homer, before leaving with a strained hamstring. The Lux homer pulled the Dodgers within 3-2 before the Giants scored three runs in their half of the fifth inning to pull away.