Cute little thing! When you cut the black rotted part off did you allow the cut end of the plant to sit out and dry/callous over before repotting?
I wouldn't have recognized that little cutie as Ananas/Pineapple; I've never seen a Pineapple with short, broad leaves like that; it reminds me more of Aloe. There is one Aloe with short, broad leaves that comes to mind and there are probably others.
Hopefully someone knowledgeable with cacti/succulent type plants will be along with advice and care suggestions for you.
For comparison, there are photos here of:
Short Leaved Aloe (Aloe brevifolia)
And, here:
http://www.smgrowers.com/produ...
https://en.wikipedia.org/wiki/...