unpacking a .gem?

M

Martin Pirker

Hi...

Short question: How do I manually unpack a .gem?

Long version:
Increasingly packages seem to only come as gem
download (e.g. mongrel). While nice and all if you are
properly setup and connected, you just gem install (and
there's an option "unpack an installed gem to the current
directory").

But what if for some reasons I just got hold of a single .gem
file and just want to
a) study its content first without install or
b) carefully install by hand into an enviroment which I
exactly want to know what gets in/out (no automatisms)


Thanks,
Martin
 
S

Senthilnayagam

Hi Martin,

Gem packing essentially is a zip file.

so rename it and unzip and do your research stuff.

this zip also has info on the gem plugin/app structure, author and
usage info


regards
A.Senthil Nayagam
http://senthilnayagam.com
 
M

Martin Pirker

Senthilnayagam said:
Gem packing essentially is a zip file.

Ummm... it is indeed a plain .tar which aggregates a metadata.tar.gz
and a data.tar.gz

I suspected something like that already, but silly me got confused
why .tar.gz depacking didn't work - more than one wrapping, that's the
trick...

thanks :)
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,678
Latest member
Aniruddha Das

Latest Threads

Top