– Yovani Gallardo earned his 100th career victory, Delino DeShields kept running all the way home and the Texas Rangers ended Toronto's five-game winning streak.

After losing the first two games of the series, and their hold on the American League's second wild card, the Rangers avoided a sweep with the 4-1 victory Thursday.

DeShields had a part in every run even without an RBI, including his single that rolled under the glove of charging right fielder Jose Bautista with two runners on in the seventh. The ball wound up near the warning track and DeShields circled the bases on the error for a 4-0 lead.

"That's an exciting play. I was just happy to find a hole and give us a chance to get up, get some cushion," DeShields said. "It was fun running around the bases."

Gallardo (11-9) threw 5 ⅓ scoreless innings, giving up three hits while striking out two and walking three on 101 pitches.

"Yovani maneuvered his way around the lineup with a one-run lead, never gave in," manager Jeff Banister said.

The AL East-leading Blue Jays lead the majors with 5.4 runs per game, and had outscored opponents 54-19 during their recent string. Gallardo has thrown 13 ⅔ scoreless innings in two starts against them this season.

Gallardo became the fourth native of Mexico to win 100 games, joining Fernando Valenzuela (173), Esteban Loaiza (126) and Ismael Valdez (104).

"It just shows a lot of hard work, throughout the years, and it's definitely exciting," said Gallardo, who improved to 100-73 in 241 career games with Milwaukee (2007-14) and Texas.

Shawn Tolleson worked the ninth for his 26th save in 28 chances. He had converted 12 straight before Tuesday night's series opener, when he gave up two runs in the ninth inning of a 6-5 loss.

Sam Dyson got Troy Tulowitzki to ground into an inning-ending double play with the bases loaded in the seventh.

Texas never trailed after DeShields drew a walk from Marco Estrada (11-8) in the first and scored on Mitch Moreland's single.

DeShields finished 2-for-2 with three walks after going 6-for-38 with 13 strikeouts the previous nine games.

"That's what I'm supposed to do, get on base, touch home plate, any way I can," he said.