it happened to me but a bit differently, i had all the tools and a spare tube......
about 10 miles into a ride i got a puncture, yeh no biggy i fixed it and used my new mini pump enough to get on the way again, found the thorn that did it.
20 miles later in the pishing rain when the weather turned i was stuck with another puncture, i thought aye no problem ill just stand here getting cold and soaked next to a busy main road out of edinburgh on a narrow path and whip out my new tube, i got the new tube on the wheel and put it back on the bike, then i went to pump it.....
i had already told 2 guys i was fine who asked if i needed help, low and behold my pump would not inflate the tyre........ the pump had failed after its hot action earlier in the day.....
ended up phoning dad for a lift about 6 or 7 miles from home and had to walk half of that due to the traffic... was a fun ride till my pump failed i keep a bigger one that hasn't failed on my mtb now
second time i called a lift i was along silveknowes on the mtb i noticed my tyre deflating slowly so i pushed my self a bit longer to try and race against the tyre, i lost and had the tyre half of the wheel and i couldn't see or feel any thing in the failing light, was getting pretty late, so i thought screw it ill put in the spare tube and risk it....
yeh bad choice the new tube started to slowly deflate soon after i pumped it up so i got along to the end of silver knowes before the new tube packed in, then phoned my dad saying i was a dumbass and he came to pick me up, he was really annoyed and i said it's fine i will walk it back but he said son i wouldn't be able to sleep if you done that, then i got a lift back.
dad is awesome for doing that, i would of been fine walking back that distance but he says he would of been up all night worrying meh and i found a massive thorn in my tyre when i went to inspect it