views:

225

answers:

2

Is there any tool to convert plugin to gem and vice versa.

+3  A: 

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.

bensie
+2  A: 

A little bit of a tangent, but you can vendor a gem into your application - meaning that you have a copy of the gem code in your /vendor/gems directory. All baked into the Rake tasks that ship with Rails.

Almost but not quite entirely unlike converting a gem to a plugin ...

Toby Hede