gem info or description

Liam's Avatar

Liam

22 Jun, 2016 02:06 AM

Hello, new to gems
I can't find any commands on how to display a gem information or description.
For example, in brew I can type "brew info name-of-whatever".
How would I do that for gems through terminal? Or is there a website that has descriptions of each green, or a search by what a gen is for?
I thought it was spec.name but that gives me an error. Not even sure what to Google for.

  1. Support Staff 1 Posted by Nick Quaranto on 22 Jun, 2016 04:12 AM

    Nick Quaranto's Avatar

    Hey-

    Try out "gem search -d QUERY" or "gem list -dr QUERY"

    ...these methods have gotten very, very slow over time and were meant for a
    time when the index was much faster though. It might be faster to just
    search Google or rubygems.org until we can make that better!

  2. Support Staff 2 Posted by David Radcliffe on 22 Jun, 2016 12:40 PM

    David Radcliffe's Avatar

    We're working on better search for RubyGems.org and once that is done I think we should expose that via the API and gem search should probably use it too.

  3. Support Staff 3 Posted by Eric Hodel on 22 Jun, 2016 05:11 PM

    Eric Hodel's Avatar

    See also gem spec for details on installed gems and gem dep for viewing the dependencies of gems.

  4. 4 Posted by Liam on 24 Jun, 2016 02:54 AM

    Liam's Avatar

    Thank you so much guys. All suggestions worked.

    @Nick actually it wasn't slow for me, worked great. Short info on gems is what I was looking for, ex. gem name and version number, author name, description of a gem. Perfect.

  5. Support Staff 5 Posted by Aditya Prakash on 08 Aug, 2016 11:43 AM

    Aditya Prakash's Avatar

    This has been resolved.

  6. Aditya Prakash closed this discussion on 08 Aug, 2016 11:43 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac