From: geistteufel Date: 2009-07-14T10:44:53+09:00 Subject: Re: (just) retrieve and unpack a gem Rich Morin a écrit : > I need to retrieve and unpack a large number of gems, without > either (a) affecting my local gem installation or (b) getting > involved with dependencies. "gem fetch" will retrieve random > gems, but "gem unpack" is a bit more picky. > > According to http://docs.rubygems.org/read/chapter/10#page34: > > You can only unpack gems that you have installed, ... > > I can hack the gem command to get the results I want, but it > seems like there should be a way to do this. Clues, anyone? > > -r > Do it like this cd /tmp GEM_HOME=$PWD GEM_PATH=$PWD gem install PACKAGE So look in cache directory. All gem is there. Just do gem unpack GEM and done ! System is protected ! You can do it as user to be sure of that. -- http://blog.celogeek.fr : Celogeek Blog - a geek web site, with my tricks for phone (tuto, test ...), linux and more (french only) - Fan de linux, de mobile et de programmation, mon blog est fait pour vous ! Tous mes trucs et astuces la !