Must I Install a Gem to Unpack It?
- by yar
I wrote up some instructions for freezing a non-native gem in a Rails app today:
install the gem
sudo gem install fastercsv
put the reference in the environment.rb (I think this is only necessary to do unpack with no GEM specified)
config.gem "fastercsv"
unpack the gem
rake gems:unpack GEM=fastercsv
uninstall the gem
sudo gem uninstall fastercsv
I know this must be the long way around: how can I unpack the gem without installing it first?
Also: What's the difference between rake gems:unpack GEM=fastercsv and gem unpack fastercsv?