Is there any tool to convert plugin to gem and vice versa.
Check out Jeweler -- it helps you get all the files together that you need to build a gem, then have a look at rubygems.org to publish it when you're ready.
I would encourage you to build gems as opposed to plugins, they're typically easier to maintain during a project lifecycle.