gem list rails used to match everything that started with "rails" (and the documentation still claims that it works that way) , but at some point it started matching everything that includes rails anywhere. This may seem ridiculous, because there are (at the moment I am writing this, but I'm sure it rises by almost an hour) 2.764 elements that correspond to the "rails":
gem list rails --remote | wc -l 2764
Can Rubygems only make exact matches by default? I do not see any command line switches that force exact matching . Perhaps setting in ~/.gemrc ?
Obviously, I can do this by passing the output to other utilities, but itβs such a pain every time you just want (for example) to check the latest version of the gem, and it is much slower, and makes you stop and think about the details, which (IMO) detract from any problem you are working on.
gem list rails --remote | grep '^rails '
Is there a good way to do this by default?
source share