-
-
Notifications
You must be signed in to change notification settings - Fork 26
Description
We need to provide pre-compiled gems without internet access. We download from rubygems.org, compile using gem compiler, and push the compiled gems to our local geminabox server. From here the gems are downloaded onto target machines that do not have compilers.
My problem is the passenger gem. This requires unpacking, then running a cmd which builds mod_passeneger.so. I want to include this file in the compiled gem.
gem compiler unpacks in a tmp area in a dir containing a time stamp - so I cannot unpack, compile & run gem compiler on the same dir hoping it will include mod_passenger.so.
Ideally I need a hook to be able to insert a file into the unpacked area before it is repackaged.
I can use gem unpack - but can I& place a file in the unpacked area and perhaps gem-compile the unpacked gem dir?
Or can I unpack & re-pack the gem-compiled gem file??