Lyft delivered second-quarter earnings which showed a smaller loss than expected, and investors are cheering the news by lifting the stock 5%.