Ruf homers twice, Junis tosses 6 innings, but late rally sinks Giants in opening game of home stand.