swdyh

rubygems

2007-03-28 17:04:17
% gem help commands 

GEM commands are:

    build            Build a gem from a gemspec
    cert             Adjust RubyGems certificate settings
    check            Check installed gems
    cleanup          Clean up old versions of installed gems in the local
                     repository
    contents         Display the contents of the installed gems
    dependency       Show the dependencies of an installed gem
    environment      Display information about the RubyGems environment
    help             Provide help on the 'gem' command
    install          Install a gem into the local repository
    list             Display all gems whose name starts with STRING
    outdated         Display all gems that need updates
    pristine         Restores gem directories to pristine condition from files
                     located in the gem cache
    query            Query gem information in local or remote repositories
    rdoc             Generates RDoc for pre-installed gems
    search           Display all gems whose name contains STRING
    sources          Manage the sources RubyGems will search forgems
    specification    Display gem specification (in yaml)
    uninstall        Uninstall gems from the local repository
    unpack           Unpack an installed gem to the current directory
    update           Update the named gem (or all installed gems) in the local
                     repository

For help on a particular command, use 'gem help COMMAND'.

Commands may be abbreviated, so long as they are unambiguous.
e.g. 'gem i rake' is short for 'gem install rake'.

意外といっぱいある。
とりあえず、cleanupしたら古いファイルがたくさん消えていい感じだった。
searchはデフォルトで-rのがいいなあ。


gem_lock、gemwhich
http://docs.rubygems.org/read/chapter/17


gem_server
http://docs.rubygems.org/read/chapter/18#page80
gem用のサーバーとしてじゃなくて、
ローカルでrdocを読むために使ってる。
これがあるとさらに便利。
http://d.hatena.ne.jp/secondlife/20070126/1169806683


あと使ってないけど、
gemriとかgem_mirrorってコマンドもあるみたい。