MINNEAPOLIS — After four straight losses that included consecutive shutouts, Minnesota Twins manager Ron Gardenhire just wanted to see his team put up a fight in Sunday’s series finale against the Tampa Bay Rays.

Minnesota’s come-from-behind victory was a bonus.

Ryan Doumit and Josmil Pinto homered off reliever Joel Peralta in a four-run eighth inning, and the Twins ended a 25-inning scoreless streak in a 6-4 win.

Minnesota had lost the previous four games by a combined 38-5, including a 7-0 defeat Saturday that was interrupted by a rain delay of more than two hours.

“That long night last night, we talked about, are we really getting after it?” Gardenhire said. “And today I thought we really got after it. In the dugout, on the bench, it was going along pretty good. I was happy with the way things went, and to come back and win the ballgame adds to it.”

Tampa Bay, which had won its previous three games, wasted a 3-0 lead and a solid start from David Price, who gave up two runs, six hits and three walks in 6 1-3 innings. Overall, the Rays had won 11 straight against Minnesota.

Price loaded the bases on two walks and a single in the seventh, and Jake McGee relieved.

The left-handed had a 1-2 count on Chris Parmelee, who singled sharply to left-center on a 97 mph fastball to cut the deficit to one run.

Peralta (2-8) got the first two outs in the eighth before surrendering a long solo home run to Doumit, a sharp single to Trevor Plouffe and a walk to Josh Willingham. That set the stage for Pinto, called up from Triple-A Rochester and catching because Joe Mauer is on the disabled list with a concussion.

Pinto sent an 0-1 pitch into the Rays bullpen in center for a three-run homer, the second home run of the rookie’s big league career.

Peralta, who has made a team-high 73rd appearances, blew a save for the third time in four chances.

Casey Fien (5-2) earned the win after retiring pinch-hitter David DeJesus on a bases-loaded flyout that ended the eighth inning. Glen Perkins pitched a perfect ninth for his 35th save in 39 chances.

Twins starter Pedro Hernandez gave up three runs, four hits and four walks in five innings, allowing home runs to Wil Myers and Sean Rodriguez.

Myers’ two-run homer in the fourth landed in the second deck in left and was estimated at 440 feet.

Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

More From KSOO-AM / ESPN Sioux Falls