I'm trying to search remote gems as described in the RubyGems guide, but the following command searches local gems on my system:
$ gem search ^rails
*** LOCAL GEMS ***
What's likely to cause this, how might I diagnose and fix it? I'm using RVM.
Update:
The command gem search
defaults to searching remotely only from version 1.8.25 onward. To search remote gems with older versions you have to use the -r
(or --remote
) option:
$ gem --version
1.8.23
$ gem search ^rails
*** LOCAL GEMS ***
...
$ gem search -r ^rails
** REMOTE GEMS ***
...
See gem help search
and the Rubygems changelog for more informations.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments