DENVER -- Jeff Hoffman worked his way out of an early jam, with an assist from manager Bud Black in the form of a stern mound visit.
"(Black) just kind of told me that this is that moment during the game where I've been getting bit by the big inning," said Hoffman, who limited the damage after giving up four consecutive hits to start the second. "It's nothing more than getting the guy that's in front of me and then getting the next guy. It wasn't any magical words or anything like that. It was just, leave it right here. Take a step, take a deep breath and go get them."
The straightforward approach helped Hoffman snap a five-game losing streak dating back to July 21, 2017.
"I thought Jeff battled really well," said teammate Scott Oberg, who pitched a scoreless ninth for his first save since 2016. "Things could have taken a different turn in the second inning and he kind of put a stop to it."
Hoffman (1-1) allowed three runs and seven hits, helping the Rockies get back to the .500 mark at 27-27. He struck out six and walked two.
Oberg, filling in for injured closer Wade Davis, got three outs for his third career save.
"We've played overall, the last month, good baseball," Black said. "I think we still haven't found our stride in the rotation. I think that's coming and that will help us continue this upward push, but we've got to stay on it."
Robbie Ray (4-2) gave up five runs -- four earned -- in 4 2/3 innings. He walked four and struck out six as his four-game winning streak ended.
Arizona pulled within a run in the fifth on Jones' two-out solo shot off Hoffman into the left field bleachers.
Colorado added a run in the bottom half on reliever Stefan Crichton's errant pickoff throw to first, which allowed Nolan Arenado to score from third. But the Diamondbacks again got within a run on Kelly's homer in the sixth off reliever Seunghwan Oh.
Trailing 2-1 going into the bottom of the fourth, the Rockies drew three consecutive walks from Ray to start the inning and all three scored.
"Obviously, that fourth inning got out of control," Ray said. "Man, I don't know what happened. The third inning was pretty dominant; I felt really good. I felt like everything was clicking, and then all of a sudden, it was gone. Baseball's a funny sport. I don't know if I've ever had that happen where you walk three guys in a row with absolutely non-competitive pitches."
Rodgers singled to drive in a pair of runs and Hoffman had a two-out bunt single, scoring Ian Desmond from third as the Rockies moved in front 4-2.
Diamondbacks: OF David Peralta is expected to resume light baseball activities as soon as he intensifies his rehab work toward a return from right AC joint inflammation that landed him on the 10-day injured list a week ago.
Rockies: Davis is expected to throw a bullpen in the next day or two, his first since going on the 10-day injured list a week ago with a left oblique strain. ... LHP Chris Rusin, who began the season on the 10-day injured list with a mid-back strain, continued his rehab assignment at Triple-A Albuquerque, where he threw one scoreless inning with two strikeouts. It was his eighth rehab appearance.
Diamondbacks: RHP Taylor Clarke (1-1, 2.93 ERA) is set to make his third career start in Thursday's series finale. Clarke earned his first big league win in his last outing, allowing three runs and six hits in 6 1/3 innings against San Francisco.
Rockies: LHP Kyle Freeland (2-6, 6.71 ERA) is seeking his first win since April 18 against Philadelphia. He has gone 1/3 with an 8.65 ERA in five starts at home this season.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
Should Luhnow, Hinch suspensions be pushed back to 2021?
Woody Paige says the suspensions of AJ Hinch and Jeff Luhnow should be continued when the MLB season resumes and not served during the global pandemic.
Former Angels, Cardinals All-Star Jim Edmonds OK after coronavirus
Former Angels. Cardinals slugger Jim Edmonds said he's symptom-free after being diagnosed with coronavirus.
Check out the Tampa house Bucs QB Tom Brady is renting from former New York shortstop Derek Jeter
It's the house The Captain built and now the G.O.A.T. rents it. But will Derek Jeter charge Tom Brady the estimated $44,000 rent?
Source: Tom Brady rents Derek Jeter's waterfront mansion
New Bucs QB Tom Brady has rented the 30,000-plus-square-foot home belonging to Marlins CEO Derek Jeter on Davis Islands, located just a short drive from the NFL team's facility.
Former White Sox All-Star, broadcaster Ed Farmer dies
Ed Farmer, an All-Star reliever who spent nearly three decades as a radio broadcaster for the Chicago White Sox, has died at age 70.
AJ Hinch, Jeff Luhnow suspensions fulfilled in 2020 even if MLB season canceled
Because AJ Hinch's and Jeff Luhnow's suspensions are tied to the end of the 2020 postseason rather than a specific number of games, MLB will view them as having served their discipline this year no matter what, sources told ESPN.