I think your boss could have handled that a lot better, and could have made clear her expectations and the consequences of not meeting them, but most bosses are not trained very well, and fewer of them are naturally good at being bosses.
I doubt if being fired unexpectedly has anything to do with having Aspergers. The two times I was fired, it came as a complete surprise to me, and the Asperger's tests I've taken indicate that, while I'm not as intuitive as an IEI or an ILI, I'm not very near the scores which indicate Aspergers.
My first job was in a library. I applied because I loved reading books. But I discovered that working in a library has very little to do with reading books, and a lot to do with getting along with difficult people. I lasted about three months before I quit. I think my attitude was, "I could help these people (the general public), but I don't want to." I feel sorry for most librarians, because they don't get enough respect for the good work they do.
One of my sisters is LII, and she worked in the public eye in a specialty fish market. But I suspect she kept that job because the manager really really liked her and she could work whenever she wanted. A friend of mine created a job for her at the college where he works. She now handles the technical parts of the phone and communications systems for the college, never talks to the public, is reasonably happy at work (she is, after all, LII) and is considered to be invaluable because she is really good at her job.
Here is a picture of a card that sits on the desk of an LII I work with:
Attachment 7453
Just something to keep in mind.