ARLINGTON, Texas (AP) — Arizona rookie Robbie Ray took a shutout into the eighth inning to outpitch Texas' Yovani Gallardo and the Diamondbacks beat the Rangers 4-2 on Tuesday night.

Ray (3-4) pitched four-hit ball over a career-high 7 2/3 innings. He didn't give up a hit until Elvis Andrus' single with two outs in the fifth.

Jake Lamb's two-run single with two outs in the top of the fifth put Arizona ahead 2-0 and ended Gallardo's consecutive scoreless streak at 33 1/3 innings. A.J. Pollock's RBI single with two outs in the sixth made it 3-0 and chased Gallardo (7-7).

The Rangers scored in the eighth as Arizona right fielder Yasmany Tomas missed Andrus' line drive for a three-base error and Andrus scored on Shin-Soo Choo's sacrifice fly. Delino DeShields doubled with two outs and scored on Rougned Odor's single.

Brad Ziegler got the last three outs for his career high-tying 13th save.

More From 1130 The Tiger