[Ruby] gems: rubygems-update
スッキリ分からないんですが、確認してみました。
[markdown]
> * [rubygems-update | RubyGems.org | your community gem host](https://rubygems.org/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.
インストールされていました。
“`prettyprinted
% gem list rubygems-update
*** LOCAL GEMS ***
rubygems-update (2.2.1)
“`
## RubyGems のアップデート
gem コマンド自体のアップデートはこれでよいのかな。
“`prettyprinted
% 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 のアップデート。
“`prettyprinted
% gem update
Updating installed gems
:
% gem cleanup
Cleaning up installed gems…
:
Clean Up Complete
% gem pristine –all
“`
gem のインストール先を探す。
“`prettyprinted
% gem which compass
/usr/local/Cellar/ruby/2.1.0/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass.rb
“`
> * [Rubyのパッケージマネジメントシステムgem(Rubygems)のコマンド一覧](http://blog.layer8.sh/ja/2012/04/16/ruby%E3%81%AE%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%83%9E%E3%83%8D%E3%82%B8%E3%83%A1%E3%83%B3%E3%83%88%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0gemrubygems%E3%81%AE%E3%82%B3%E3%83%9E%E3%83%B3/)
> * [RubyGemsのバージョンをダウンしたりアップしたり – アインシュタインの電話番号](http://blog.ruedap.com/2011/02/21/ruby-gem-update-version-down)
[/markdown]