views:

2571

answers:

2

Following the great advice of Chris Wanstrath, I decided to vendor everything.

However, whenever I run a rake task now I get an error for each of my unpacked gems stating

config.gem: Unpacked gem gemname in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.

I've done this but no dice. Anyone have the same issue? If so, how do I resolve?

TIA

+20  A: 

I usually go through the following steps:

  1. cd vendor/gems/gemname
  2. gem specification gemname > .specification

Hope it helps.

Milan Novota
Thanks. Works a charm!
Urf
see you at SoR by the way ... I'm sure I'm due you a drink by now ;)
Urf
Hah! That sounds great! Now I understand what is the real benefit of using SO. :D
Milan Novota
My God, how do you know this stuff? +1
Yar
NOTE: at least in the gem I did this for today, prawn-core-0.7.2, the gem name was prawn-core.
Yar
A: 

Another way to solve this problem to generate a spec file in the gems directory: http://digitizor.com/2010/04/03/fix-unpacked-gem-vendor-specification-file-error/

Deb