A spike in gasoline prices last month helped lift the Consumer Price Index by 0.5 percent , the fastest pace in 1-1 / 2 years , although prices gained just 0.1 percent excluding volatile food and energy costs , the Labor Department said .