[Ruby] gems: rubygems-update

スッキリ分からないんですが、確認してみました。

RubyGems is a package management framework for Ruby. This gem is an update for the RubyGems software. You must have an installation of RubyGems before this update can be applied.
インストールされていました。

% gem list rubygems-update
*** LOCAL GEMS ***
rubygems-update (2.2.1)

RubyGems のアップデート

gem コマンド自体のアップデートはこれでよいのかな。

% gem update rubygems-update
Updating installed gems
Nothing to update
% sudo gem update --system
Password:
Updating rubygems-update
Successfully installed rubygems-update-2.2.1
Parsing documentation for rubygems-update-2.2.1
Done installing documentation for rubygems-update after 0 seconds
Installing RubyGems 2.2.1
RubyGems 2.2.1 installed
Parsing documentation for rubygems-2.2.1
Installing ri documentation for rubygems-2.2.1
    :
RubyGems installed the following executables:
    /usr/local/Cellar/ruby/2.1.0/bin/gem
Ruby Interactive (ri) documentation was installed. ri is kind of like man
pages for ruby libraries. You may access it like this:
  ri Classname
  ri Classname.class_method
  ri Classname#instance_method
If you do not wish to install this documentation in the future, use the
--no-document flag, or set it as the default in your ~/.gemrc file. See
'gem help env' for details.
RubyGems system software updated
% gem -v
2.2.1

補遺

インストールされている gem のアップデート。

% gem update
Updating installed gems
    :
% gem cleanup
Cleaning up installed gems...
    :
Clean Up Complete
% gem pristine --all

gem のインストール先を探す。

% gem which compass
/usr/local/Cellar/ruby/2.1.0/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass.rb