Sunday, March 7, 2010

RUBY :: Install gem

In Ruby, to search for a specific gem in the local machine
$ gem list
- this will list the local gems

To search for a specific gem remotely
$ gem query --remote --name-matches <search_name>
- this lists the gems that matches the search_name

Select the gem to install
$ gem install <search_name>

Check: find the installed gem in the local list

No comments:

Post a Comment