How to Update Ruby Gems
The Ruby programming language, originally developed by Yukihiro "Matz" Matsumoto, uses a program known as Ruby Gems to collect, distribute and install Ruby library and tools that can be used by developers in their programs. This makes is easier to easily install dozens or hundreds of extensions to the Ruby language easily, so it is helpful that the means to automatically update the extensions (called gems) is included.
Instructions
-
-
1
Open a terminal or command prompt. In Windows, you can do this by clicking "Start," "Run," and typing "cmd." In Mac OS X, click the Spotlight button and type "Terminal."
-
2
Type the following on a Mac OS X or Linux machine:
sudo update_rubygems
On a Windows machine, you do not need the "sudo" prefix.
This will install any updates to the Ruby Gems program itself. You may be prompted for your password.
-
-
3
Type the following to update all installed gems:
sudo gem update
Again, on Windows, leave the "sudo" off.
-
1