Frank Gailey was dominant over seven shutout innings as the York Revolution grabbed a 4-1 victory over the Long Island Ducks on Wednesday night, in front of 7,067 fans at Bethpage Ballpark in Central Islip, New York.

Having won back-to-back games, the Revs improved to 6-7 in the Atlantic League second half, pulling within one game of first place. They will aim to win the four-game series on Thursday night before returning home this weekend.

Gailey (2-2) tied a Revs' record by striking out each of his first four batters faced, and also whiffed six of his first seven. The lefty retired his first 10 batters overall, and allowed a total of three hits, one of which was an infield single. Gailey walked none and finished his outing by striking out the side in the seventh, finishing the night with 10 punch outs.

Long Island's only base runner to reach scoring position off Gailey came in the bottom of the fifth when Jon Griffin led off with a double down the left-field line. Gailey received help from center fielder Brandon Boggs, who dove in left-center to rob Mike Blanke of a hit, preserving the shutout.

Offensively, York opened by scoring in the first for the third consecutive game. Eric Patterson drew a two-out walk and Brandon Boggs launched a two-run homer down the right-field line, his fifth of the year, spotting the Revs a quick 2-0 advantage.

The Revs added to their lead in the third. Mikey Reynolds led off with a triple to left-center and scored when Patterson fought back from down 0-2 to work a full count before ripping a one-out single up the middle through a drawn-in infield to make it 3-0.

Nick Ferdinand led off the sixth with a double down the third-base line. It took until there were two outs, but Ferdinand scored when Reynolds laced an RBI single to center, extending the lead to 4-0.

Ducks starter Billy Buckner (7-2) had a seven-game winning streak snapped, allowing all four runs on eight hits over 5.2 innings.

Stephen Penney fired a perfect eighth in relief of Gailey, making his team-record 198th appearance with the Revs.

Josh Judy allowed just an unearned run in the ninth. Judy struck out the final two batters to nail down the win.

Revs pitchers combined for 13 strikeouts, tying a season-best for a nine-inning contest.

Notes: Gailey's four strikeouts to begin the game tied a club record set by Corey Thurman, April 26, 2009 at Bridgeport. Gailey is the first Revs' pitcher to strike out 10 in a game since Zack Segovia, on Sept. 9, 2013 vs. Bridgeport. He is the first lefty to strike out 10 in a game since Chris Cody struck out 12 Patriots, July 24, 2013 at Somerset. Gailey's seven innings establishes a career-high. The lefty made just his eighth career start (fourth this season). ... Combining on a four-hitter on Wednesday night, Revs' pitchers have now allowed just two runs (one earned) on six hits over 18 innings the last two nights against the league's top-scoring offense. ... The Revs' offense has totaled 25 hits in the first three games of the series, including 14 extra-base hits. ... The Ducks fell to 30-11 at home. The Revs have handed the Ducks three of their 11 home defeats; York is now 3-3 at Bethpage Ballpark. ... York lefty Logan Williamson (4-6, 3.57) will face Ducks right-hander Ian Marshall (3-5, 3.54) on Thursday night at 6:35 p.m.