RubyGems 備忘録

Leopard(Mac OS X 10.5) インストール時点での,RubyGemsの状態をチェック.

RubyGems本体のバージョンを確認する

$ gem env

RubyGems Environment:
  - VERSION: 0.9.4 (0.9.4)

RubyGems本体の更新

# gem update --system

インストールリストでバージョンを確認する

$ gem list

actionmailer (1.3.3)
    Service layer for easy email delivery and testing.

actionpack (1.13.3)
    Web-flow and rendering framework putting the VC in MVC.

actionwebservice (1.2.3)
    Web service support for Action Pack.

activerecord (1.15.3)
    Implements the ActiveRecord pattern for ORM.

activesupport (1.4.2)
    Support and utility classes used by the Rails framework.

acts_as_ferret (0.4.1)
    acts_as_ferret - Ferret based full text search for any ActiveRecord
    model

capistrano (2.0.0)
    Capistrano is a utility and framework for executing commands in
    parallel on multiple remote machines, via SSH.

cgi_multipart_eof_fix (2.2)
    Fix an exploitable bug in CGI multipart parsing which affects Ruby
    <= 1.8.5 when multipart boundary attribute contains a non-halting
    regular expression string.

daemons (1.0.7)
    A toolkit to create and control daemons in different ways

dnssd (0.6.0)
    DNS Service Discovery (aka Rendezvous) API for Ruby

fastthread (1.0)
    Optimized replacement for thread.rb primitives

fcgi (0.8.7)
    FastCGI library for Ruby.

ferret (0.11.4)
    Ruby indexing library.

gem_plugin (0.2.2)
    A plugin system based only on rubygems that uses dependencies only

highline (1.2.9)
    HighLine is a high-level command-line IO library.

hpricot (0.6)
    a swift, liberal HTML parser with a fantastic library

libxml-ruby (0.3.8.4)
    LibXML2 bindings for Ruby

mongrel (1.0.1)
    A small fast HTTP library and server that runs Rails, Camping, Nitro
    and Iowa apps.

needle (1.3.0)
    Needle is a Dependency Injection/Inversion of Control container for
    Ruby. It supports both type-2 (setter) and type-3 (constructor)
    injection. It takes advantage of the dynamic nature of Ruby to
    provide a rich and flexible approach to injecting dependencies.

net-sftp (1.1.0)
    Net::SFTP is a pure-Ruby implementation of the SFTP client protocol.

net-ssh (1.1.2)
    Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.

rails (1.2.3)
    Web-application framework with template engine, control-flow layer,
    and ORM.

rake (0.7.3)
    Ruby based make-like utility.

RedCloth (3.0.4)
    RedCloth is a module for using Textile and Markdown in Ruby. Textile
    and Markdown are text formats.  A very simple text format. Another
    stab at making readable text that can be converted to HTML.

ruby-openid (1.1.4)
    A library for consuming and serving OpenID identities.

ruby-yadis (0.3.4)
    A library for performing Yadis service discovery

rubynode (0.1.3)
    RubyNode is a library that allows read only access to Ruby's
    internal NODE structure.

sources (0.0.1)
    This package provides download sources for remote gem installation

sqlite3-ruby (1.2.1)
    SQLite3/Ruby is a module to allow Ruby scripts to interface with a
    SQLite3 database.

termios (0.9.4)
    Termios module are simple wrapper for termios(3). It can be included
    into IO-family classes and can extend IO-family objects. In
    addition, the methods can use as module function.

要アップデートなモジュールを確認

$ gem outdated

acts_as_ferret (0.4.1 < 0.4.3)
highline (1.2.9 < 1.4.0)
activerecord (1.15.3 < 2.0.2)
mongrel (1.0.1 < 1.1.2)
rails (1.2.3 < 2.0.2)
actionwebservice (1.2.3 < 1.2.6)
rake (0.7.3 < 0.8.0)
ruby-openid (1.1.4 < 2.0.2)
gem_plugin (0.2.2 < 0.2.3)
libxml-ruby (0.3.8.4 < 0.5.2.0)
cgi_multipart_eof_fix (2.2 < 2.5.0)
rubynode (0.1.3 < 0.1.4)
ferret (0.11.4 < 0.11.6)
daemons (1.0.7 < 1.0.9)
actionpack (1.13.3 < 2.0.2)
capistrano (2.0.0 < 2.1.0)
actionmailer (1.3.3 < 2.0.2)
activesupport (1.4.2 < 2.0.2)
fastthread (1.0 < 1.0.1)

コマンドまとめ

# gem build             gemspecからgemをつくる
# gem cert              サインの必要な証明のRubyGemsを管理する 
# gem check             インストールされたgemをチェックする
# gem cleanup           ローカルリポジトリの中にインストールされたgemの古いバージョンを除去する
# gem contents          インストールされたgemのコンテンツを表示する
# gem dependency        インストールしたgemの依存を示す
# gem environment       RubyGemsの環境に関する情報を表示する
# gem fetch             gemをダウンロードし、現在のディレクトリに置く
# gem generate_index    gemのサーバーディレクトリ向けのインデックスファイルを生成する
# gem help              'gem'コマンドにヘルプを与える
# gem install           ローカルリポジトリにgemをインストールする
# gem list              一続きで始まる名前のgemを表示する
# gem lock              gemのロックダウンリストを生成する
# gem mirror            gemの倉庫を写す
# gem outdated          アップデートが必要な全てのgemを表示する
# gem pristine          gemの隠し場所にあるファイルからインストールしたgemを初期状態へ戻す
# gem query             特定の標準に合うgemを質問する
# gem rdoc              プリインストールされたgemのRDocを生成する
# gem search            一続きを含む名前の全てのgemを表示する
# gem server            Documentation and gem repository HTTP server
# gem sources           gemを検索するために使われているRubyGemsのソースとキャッシュファイルを管理する
# gem specification     (yamlで)gemの詳細を表示する
# gem uninstall         ローカルリポジトリからgemをアンインストールする
# gem unpack            現在のディレクトリにインストールされたgemを解凍する
# gem update            ローカルリポジトリで指定されたgem(あるいはインストール済の全てのgem)をアップデートする
# gem which             ライブラリの場所を探す