Check the tire to make sure what flatted your wheel isnt still stuck in the tire.
Throw in a new tube.
When you get home, throw on some GCN episodes and take the time to sand the flatted tube, glue it up, let it dry and then patch it.
Then you have a good spare for the next ride out.