Must I Install a Gem to Unpack It?

Posted by yar on Stack Overflow See other posts from Stack Overflow or by yar
Published on 2010-05-07T15:45:20Z Indexed on 2010/05/07 15:48 UTC
Read the original article Hit count: 307

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about rubygems