Those inherited runners would eventually score on Caleb Joseph's double off Jose Leclerc. And while Hamels was still much improved from his previous outing -- a shellacking in Detroit in which he failed to escape the first inning -- he remained annoyed by his own performance.
"You give up as many runs as I do in a month, nothing is going to be satisfactory," said Hamels, who has seen his ERA rise nearly a full run to 4.36 over his last four starts.
Hamels had been dominant early, facing the minimum batters over four innings, and in usual circumstances he might have been given a longer rope in the seventh. But he suggested abbreviated outings in his last two starts had lowered his pitch limit on Friday.
"If you don't want to put yourself in that situation, then you've got to be able to finish games earlier in the week and allow yourself to have a pitch count that you can do so," Hamels said. "It's all my fault for what the situation is, and what the outcome is that happened."
Fortunately for Hamels, Ryan Rua had connected for his first career pinch-hit home run -- a three-run shot off Tanner Scott during a four-run top of the seventh -- before his exit.
Joey Gallo added his team-leading 22nd homer off Alex Cobb (2-12) in the fifth and drew a walk off Scott to set the table for Rua. Nomar Mazara doubled in Elvis Andrus from first to complete the Rangers' seventh-inning scoring.
"To get a big one in that situation was huge for us," said Rangers manager Jeff Banister. "However, I really think that the at-bat prior, Gallo drawing a walk there to allow Rua to come up with two runners on, was a huge at-bat. And then the next run proved to be the crucial run for us."
Shin-Soo Choo singled in the third to extend his club-record on-base streak to 49 games as the Rangers picked up their third win in the first of eight games of a 10-game road trip.
YOU GOTTA SEE THIS In the bottom of the sixth, the Camden Yards crowd had already begun cheering for what appeared to be Jonathan Schoop's single before Rougned Odor chased it down deep in the hole. Then Odor leaped and fired across his body to nab Schoop by a fraction of a step.
SOUND SMART Hamels' 81 pitches were his fewest thrown in an outing of six or more innings since Aug. 29, 2011, when he threw just 76 pitches for the Phillies over six innings in a 3-2 win at the Reds. It also marks his third consecutive outing throwing fewer than 90 pitches, the first time he's thrown that little in three straight outings in the same season since '09.
MITEL REPLAY OF THE DAY Manny Machado, Schoop and Davis turned Adrian Beltre's sixth-inning grounder into a 4-6-3 double play that defied belief. How much so? Well, Banister ended up challenging both ends of the play, to see whether Machado kept his foot on second base long enough, and if his throw beat Beltre to the bag. Both calls on the field were confirmed.
UP NEXT Rangers lefty Martin Perez (2-3) makes his first start since late April on Saturday after discomfort in his surgically repaired non-throwing elbow forced him to the disabled list. After struggling early, Perez may be looking to quickly make a dent in his 9.67 ERA, especially with the Rangers holding a $7.5 million contract option at the end of the season. Right-hander Yefry Ramirez (0-3, 3.93) goes for Baltimore in a 6:15 p.m. CT start at Camden Yards.
Ian Quillen is a contributor to MLB.com based in Baltimore.