From: Tom Cloyd Date: 2009-01-26T07:07:01+09:00 Subject: Re: Listing installed gems Rob Biedenharn wrote: > On Jan 25, 2009, at 3:55 PM, Tom Cloyd wrote: > >> Shilo Ayalon wrote: >>>> Doesn't >>>> >>>> gem list >>>> >>>> does what you want? >>> >>> Bingo, must have missed that in the gem --help (yup, feeling dumb >>> right now). >>> >>> Thanks! >>> >> technically, the correct command, I believe is "gem list --local" or >> "gem list -l" >> >> And, here's another one I just learned (from this list) - in case you >> missed it: >> >> If I want to know if I have a particular gem installed, say "webby", >> any of these will return the desired result: >> >> gem list | grep we >> gem list | grep ebb >> gem list | grep bey >> >> $ gem list | grep ebb >> webby (0.9.3) >> >> t. >> -- >> >> > > > In that case, you can give a prefix to gem list: > > $ gem list --local ra > > *** LOCAL GEMS *** > > rack (0.9.1) > rails (2.1.2, 2.1.0, 2.0.2, 1.2.6, 1.2.5, 1.2.3) > rake (0.8.3, 0.8.1, 0.7.3) OK, that's interesting, but not equivalent, I find: * gem list -l ra => lists all local gems BEGINNING with "ra" * gem list -l | grep ra => list all CONTAINING "ra" It's nice to have options, eh? (unless you don't know about them!) t. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << tc@tomcloyd.com >> (email) << TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~