Drew Gilbert, Heliot Ramos, and Casey Schmitt each homered while Robbie Ray struck out four and gave up just one run through five innings to lead the San Francisco Giants to a 6-2 win over the Miami Marlins.