Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

"rake gems:install" doesn't work if plugins are missing gem dependencies

#780

It's a bit of a catch-22 -- you can't install the plugins' gems until the plugins' gems are installed. :)

I looked at the gems:install task, and the problem is that it depends on :environment.

So, I'm thinking a possible solution is to create an new rake dependency: "environmentwithoutplugins".

Anyone got any advice so I can start patching this baby? :)

Reported by epitron · August 7th, 2008 @ 11:39 PM

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. CS Merritt (csmosx)
    CS Merritt (csmosx)

    I'm not so fond of the environmentsansplugins idea, because I'd rather a hook plugin devs can put in their init.rb or whathaveyou that adds the dependencies to rake gems.

    Anywho... webficient put up a dirty hack offering by Dan Munk.

    Essentially hack the plugin where it calls for the gem and require it only if its module has been defined.

    
    require 'pdf/writer' if defined? PDF::Writer
    

    Of course that wouldn't make for very good error tracing should you run it without first running rake gems, but I rather having rake gems run correctly.

    August 21st, 2008 @ 03:49 AM

  2. josh
    josh
    • State changed from new to wontfix

    Interesting, I'm not sure this is an easy fix though.

    November 22nd, 2008 @ 06:51 PM