LOS ANGELES — As torrid as the Los Angeles Dodgers have been, Hyun-Jin Ryu is on an impressive roll, too.
The rookie left-hander extended his career-high winning streak to six games with seven innings of one-run ball as the Dodgers beat Matt Harvey and the New York Mets 4-2 on Tuesday night for their first seven-game winning streak in more than three years.
“You’ve got to play a perfect game to beat them right now, and we’re not doing that,” Mets manager Terry Collins said.
The Dodgers improved to 39-8 since June 22, becoming the first NL team with such a run since the New York Giants from Aug. 12-Oct. 3, 1951. Their winning streak is the franchise’s longest since taking nine straight from May 9-18, 2010.
“The Dodgers are having a lot of fun right now,” Los Angeles shortstop Nick Punto said.
Ryu (12-3) allowed one run and five hits in seven innings, struck out three and walked one.
The left-hander is 6-0 with a 3.12 ERA in his last seven starts since July 5. The Dodgers have won each of Ryu’s last nine starts.
“He was matching their guy pitch for pitch,” catcher A.J. Ellis said. “You could tell before the game he had an edge to him. He used all his pitches.”
The Dodgers’ starters improved to 13-1 with a 1.72 ERA in their last 18 games since July 26.
“Ryu is the game plan when you got a guy like Harvey out there,” Dodgers manager Don Mattingly said. “Hyun-Jin was obviously up to the challenge. I was looking to see how he was going to respond to this little matchup. In the games they’ve made a big deal of he’s responded really well.”
Harvey (9-4) gave up four runs and eight hits in six innings, struck out three and walked two. The right-hander was coming off his first career shutout, pitching a four-hitter in a 5-0 win over Colorado on Aug. 7. He hadn’t allowed an earned run in three of his previous four starts while going 2-1 with a 0.91 ERA in that stretch.
“I was pretty inconsistent all night. I just couldn’t locate anything,” Harvey said. “When I tried to go in, it was over the middle. When I tried to go away, I was yanking it a bit. And when you’re not hitting your spots and making quality pitches against a team like that, they’re going to put the ball in play.”
Kenley Jansen allowed a run in the ninth, but earned his 19th save in 22 chances.
Punto’s RBI double scored the tying and go-ahead runs in the fifth off Harvey (9-4). His hit in the left field corner scored Ellis, who walked, and Juan Uribe, who singled, making it 2-1.
The Dodgers extended their lead to 4-1 in the sixth on Ellis’ two-out RBI single to left that scored Mark Ellis and Yasiel Puig, who both singled.
“When our pitchers are keeping us in games like this it just takes a timely hit,” Punto said.
Juan Lagares homered in the first for the Mets. John Buck’s RBI single with two outs in the ninth accounted for their other run.
The Mets have lost eight of nine to the Dodgers.
CARDINALS 4, PIRATES 3 14 INN.
ST. LOUIS — Adron Chambers singled home the winning run in the 14th inning as St. Louis outlasted Pittsburgh and cut into the Pirates’ NL Central lead.
Sam Freeman (1-0) allowed a walk in a scoreless 14th for the Cardinals, who saddled the Pirates with their fourth straight loss and pulled within two games of them with a win in the 4-hour, 55-minute game.
Pittsburgh had four hits the first time through the order against Adam Wainwright and led 3-0 after two innings on homers by Andrew McCutchen and Jordy Mercer. They had six hits the rest of the way.
Jon Jay singled off Jared Hughes (2-3) with one out in the 14th with his fourth hit. Jay stole second and then raced home and beat left fielder Starling Marte’s throw.
Jay had three hits and an RBI for the Cardinals, who have been offensively challenged while losing six of the first eight on a 10-game homestand.
BRAVES 3, PHILLIES 1
Kris Medlen won his fourth straight start, Chris Johnson hit a two-run home run, and Atlanta beat Philadelphia.
Medlen (10-10) appeared to be in danger of being sent to the bullpen one month ago, now his spot in the rotation appears secure. He left after walking Erik Kratz to open the eighth, getting a standing ovation after allowing one run and five hits in seven innings.
Craig Kimbrel earned his 37th save.
Chase Utley had three hits for Philadelphia, including a one-out single off Kimbrel in the ninth. Kimbrel struck out Domonic Brown and ended the game on Darin Ruf’s popup to first baseman Freddie Freeman.
Johnson gave Atlanta a 3-0 lead in the third inning with his homer off rookie Ethan Martin (1-2). Johnson leads the National League with his .337 batting average.
There was a moment of silence before the game in honor of Braves fan Ronald Lee Homer Jr. of Conyers, Ga., who died after falling 85 feet from the stadium to a parking lot during Monday night’s game.
NATIONALS 4, GIANTS 2
WASHINGTON — Adam LaRoche hit a two-run home run in the sixth inning to help lift Washington, which won its ofourth in a row on a night when neither starting pitcher returned after a thunderstorm caused a 1:17 rain delay.
Washington starter Gio Gonzalez threw four shutout innings. Giants ace Madison Bumgarner allowed just one run on an infield ground out in four innings.
PADRES 7, ROCKIES 5
DENVER — Nick Hundley homered and drove in two runs, Will Venable had three hits, and San Diego rallied to beat the Rockies for just the fourth time in 15 games this season.
Jedd Gyorko also went deep for the second straight night for the Padres, who rebounded from a 14-2 loss to the Rockies on Monday.
REDS 6, CUBS 4, 11 inn.
CHICAGO — Shin-Soo Choo hit a tiebreaking two-run single in the 11th inning and J.J. Hoover provided terrific relief work on his 26th birthday, helping Cincinnati beat the Chicago Cubs.
With no outs and the bases loaded, Choo jumped on the first pitch he got from Eduardo Sanchez (0-1) and lined it into the gap in right-center. Ryan Ludwick and Devin Mesoraco scored.
Nate Schierholtz, Dioner Navarro and Murphy homered for Chicago, which was shut out in each of its previous three home games. Schierholtz’s two-run drive in the second snapped a franchise record home scoreless stretch at 33 innings.
Hoover (3-5) allowed one hit in 2 1-3 innings, running his scoreless streak to 21 games and 24 2-3 innings. Aroldis Chapman finished for his 29th save in 33 chances, closing out Cincinnati’s sixth win in seven games.
YANKEES 14, ANGELS 7
NEW YORK— Alfonso Soriano homered twice and drove in a career-high six runs, Alex Rodriguez had a two-run double, and the New York Yankees’ bats bailed out a wild CC Sabathia (10-10), who allowed three runs in six-plus laborious innings to reach 10 wins for the 13th time in a 13-year career.
Vernon Wells homered against his former team, and leadoff batter Eduardo Nunez drove in four runs as New York equaled its highest run total of the season. The second-worst run-producing offense in the AL won by more than three runs for the first time in 26 games.
RED SOX 4, BLUE JAYS 2, 11 INN.
TORONTO — Shane Victorino hit a two-run single in the 11th inning and Boston won for the ninth time in its last 13 games at Rogers Centre.
Jarrod Saltalamacchia drew a one-out walk off Aaron Loup (4-5) and Will Middlebrooks followed with a single. Jacoby Ellsbury grounded into a fielder’s choice, with Middlebrooks forced at second and Saltalamacchia advancing to third.
WHITE SOX 4, TIGERS 3, 11 INN.
CHICAGO — Alejandro De Aza singled in the winning run with the bases loaded in the 11th inning to lift Chicago.
Avisail Garcia had two hits against his former team, drove in two runs and scored two, including the winner. The White Sox handed the AL Central leaders their fourth loss in five games.
MARINERS 5, RAYS 4
ST. PETERSBURG, Fla. — Leadoff hitter Brad Miller homered twice to help Seattle send Tampa Bay to its sixth straight loss.
Tampa Bay also got two homers from its leadoff hitter, Ben Zobrist.
INDIANS 5, TWINS 2
MINNEAPOLIS — Zach McAllister won for the first time in almost three months, Ryan Raburn homered and Cleveland beat Minnesota for only its second win in the last nine games.
DIAMONDBACKS 4, ORIOLES 3, 11 INN.
PHOENIX — Paul Goldschmidt hit the first pitch of the 11th inning for a game-ending home run after leading off the ninth with a tying homer, helping the Diamondbacks to their second straight walkoff victory over the Orioles.
Arizona won the series opener on Monday when Adam Eaton hit the first pitch of the ninth inning into the pool in right field.
BREWERS 5, RANGERS 1
ARLINGTON, Texas— Scooter Gennett homered twice, Marco Estrada worked six solid innings and Milwaukee ended Texas’ eight-game winning streak.
Khris Davis also homered for the Brewers. His solo shot in the seventh ricocheted high off the left-field pole and chased Alexi Ogando (5-4).
MARLINS 1, ROYALS 0, 10 INN.
KANSAS CITY, Mo. — Christian Yelich singled home the go-ahead run with one out in the 10th inning after a tidy matchup of contrasting starters.
Hard-throwing Marlins prodigy Jose Fernandez and wily Royals veteran Bruce Chen each lasted seven innings before handing the scoreless game over to their bullpens.