I just carry a spare bike...
Actually I swap tubes and pump, and patch it later. But if I wanted to fix it quick I'd get one of those inflators that injects sealant. There are a few brands, Vittoria makes one and so do Geax and Hutchison.
__________________
Genesis 49:16-17
"Well, well!" said Holmes, impatiently. "A good cyclist does not need a high road. The moor is intersected with paths and the moon is at the full."