Consumer prices rose more quickly than expected in July as gasoline reversed a two-month decline and the cost for rent continued to climb. The consumer price index for all items was up 0.3% for the month, against expectations for a 0.2% increase. Gasoline rose 2.5% while shelter costs increased 0.3%.