Hi, Is there an easy way of converting a gem to a plugin, or at least something you can dump into $RAILS_ROOT/vendor? I''m uncomfortable having stuff like capistrano, the shipping gem, builder, autotest being installed globally as a gem instead of being installed for each application. What do you think? Joe
On 8/16/06, Joe Van Dyk <joevandyk@gmail.com> wrote:> Is there an easy way of converting a gem to a plugin, or at least > something you can dump into $RAILS_ROOT/vendor?something along the lines of geoffrey grosenbach''s freeze_other_gems rake task might do the trick for you? <http://nubyonrails.com/articles/2005/12/22/freeze-other-gems-to-rails-lib-directory> i''m not really sure how this works for gems with native code but it may be worth looking into. regards, jean-pierre
unknown wrote:> On 8/16/06, Joe Van Dyk <joevandyk@gmail.com> wrote: > >> Is there an easy way of converting a gem to a plugin, or at least >> something you can dump into $RAILS_ROOT/vendor? >You can also run gem unpack <gem name> in the vendor directory . Not sure if this is what you need ? Chris -- Posted via http://www.ruby-forum.com/.
On 8/17/06, Chris Lowis <chris.lowis@gmail.com> wrote:> > On 8/16/06, Joe Van Dyk <joevandyk@gmail.com> wrote: > > >> Is there an easy way of converting a gem to a plugin, or at least > >> something you can dump into $RAILS_ROOT/vendor? > > You can also run gem unpack <gem name> in the vendor directory . Not > sure if this is what you need ?i think the freeze_other_gems rake task is using gem unpack as well. still not sure how it would work for gems with native code (rmagick and the like) but perhaps i''ll give it a go and see how it works out. cheers, jean-pierre