unpacking files from a gem file?

5,694 views
Skip to first unread message

Rich Morin

unread,
Jan 4, 2012, 10:56:28 PM1/4/12
to gemc...@googlegroups.com
Let's say I have a gem file (eg, foo.1.2.3.gem) and I
want to unpack it into a directory. Is there an easy
way to do this?

* It seems like I should be able to use "gem unpack",
but I don't see any options for this.

* I tried crawling down into the gem sources, but
they do a lot more than I need to do and are far
more complex than I want to deal with.

* I was able to unpack a gemfile using a couple of
applications of "tar xzf", although I got some
nastygrams about invalid date stamps. However,
this seems a bit unsafe as a general approach.

What am I missing?

-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume r...@cfcl.com
http://www.cfcl.com/rdm/weblog +1 650-873-7841

Software system design, development, and documentation

Nick Quaranto

unread,
Jan 4, 2012, 11:05:06 PM1/4/12
to gemc...@googlegroups.com
Hey Rich,

This mailing list is mostly about issues with rubygems.org, not for general help with rubygems. I would direct further questions to rubygems-developers:


Gem unpack definitely unpacks a gem.

[/tmp] gem fetch rake                                
Fetching: rake-0.9.2.2.gem (100%)
Downloaded rake-0.9.2.2
[/tmp] gem unpack rake-0.9.2.2.gem                   
Unpacked gem: '/private/tmp/rake-0.9.2.2'
[/tmp] tree rake-0.9.2.2
rake-0.9.2.2
├── CHANGES
...
Reply all
Reply to author
Forward
0 new messages