PITTSBURGH -- Hyun-Jin Ryu continued his fine road pitching with seven strong innings and Adrian Gonzalez went 3-for-3 with two doubles and two walks to lead the Los Angeles Dodgers to a 5-2 victory over the Pittsburgh Pirates on Monday night.

Ryu (11-5) allowed two runs and five hits to improve to 7-2 with a 2.72 ERA in 10 road starts this season. The left-hander struck out five and walked one while beating the Pirates for the third time in as many career starts.

Paced by first baseman Gonzalez, the Dodgers broke loose for 12 hits after batting just .213 and scoring 16 runs in their previous eight games. Second baseman Dee Gordon, shortstop Justin Turner and third baseman Juan Uribe had two hits each.

Closer Kenley Jansen pitched a perfect ninth for his 29th save in 32 opportunities after right-hander Brian Wilson and left-hander J.P. Howell combined for a scoreless eighth. Howell has not allowed a run in his last 11 games, a streak covering 8 1/3 innings.

Pirates right-hander Edinson Volquez (8-7) had his four-start winning streak end. He gave up five runs and 10 hits in 5 2/3 innings while walking three and striking out three.

Center fielder Andrew McCutchen had two of the Pirates' six hits.

The Dodgers, who entered the night in a virtual tie with the San Francisco Giants in the National League West, raised their road record to an NL-best 31-21 while snapping the Pirates' six-game home winning streak, Pittsburgh's longest since 2008.

Los Angeles has won consecutive road games for the first time since winning four in a row from June 24-July 4.

The Pirates had won three straight games overall to draw within 1 1/2 games of the first-place Milwaukee Brewers in the NL Central.

The Dodgers scored twice in the third inning and three times in the fourth to take a 5-0 lead.

Matt Kemp, playing right field for the first time since 2009, doubled home the first run, and center fielder Andre Ethier followed with a run-scoring groundout to make it 2-0.

Justin Turner hit a two-run double off third baseman Josh Harrison's glove in the fourth inning then scored on Gonzalez's single.

The Pirates closed the gap to 5-2 in the bottom of the fourth on back-to-back RBI singles by catcher Russell Martin and shortstop Jordy Mercer.

NOTES: Dodgers RHP Josh Beckett (6-5, 2.26 ERA) will be activated from the disabled list Tuesday night to start against the Pirates and RHP Vance Worley (2-1, 3.38). Beckett will miss the minimum 15 days due to a right hip impingement. ... Pirates RHP Gerrit Cole is scheduled to throw a four-inning simulated game Wednesday and be on a 60-pitch limit. He has been on the DL since July 5 with a strained right lat muscle in his upper back. ... Pittsburgh LF Starling Marte returned to the lineup after sitting out the previous two games because of the aftereffects of being hit in the head by a pitch Friday. ... Pirates 3B Pedro Alvarez was on the bench against Dodgers LHP Hyun-Jin Ryu after starting the previous three games vs. left-handed starters. Alvarez was hitting .186 with two home runs against lefties in 77 plate appearances this season. ... Pittsburgh RF Gregory Polanco, 3-for-35 in his previous eight games, was held out of the starting lineup.