Rising gasoline prices pushed inflation up modestly in June. The Labor Department says its consumer price index rose 0.3 percent last month.