Engines as Gems

I have a rails engine that works quite well. We use it internally for
creating all our web apps to conform to the same UI look and feel,
widgets,
etc… Problem is that we want to deploy it as a gem for versioning. Is
there a way to create the a gem out of a rails engine?

I tried, and was able to create a gem, but there were errors. Would be
great
if someone could point me to some documentation on this subject. I have
searched and can’t find anything. Seen a coupld engines like Clearance
that
do run as a gem but they are not too complex, they don’t have any asset
files, and I think that is the problem I was running into.

I vendered my gem to vendor/gems and it was complaining about finding
the
asset files I believe.

Thanks