Gangmax Blog

How to Query Gem Detail Information

Use the following command to query a gem’s detail information with the gem name as the query condition:

1
gem query -d -b -n maruku

The output of this command is:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

*** LOCAL GEMS ***

maruku (0.6.0)
Author: Andrea Censi
Homepage: http://maruku.rubyforge.org
Installed at: /home/user/.rvm/gems/ruby-1.9.2-p290

Maruku is a Markdown-superset interpreter written in Ruby.

*** REMOTE GEMS ***

literate_maruku (0.1.3)
Author: Gregor Schmidt
Homepage: http://github.com/schmidt/literate_maruku

Literate programming for Ruby based on Maruku.

maruku (0.6.0)
Author: Andrea Censi
Homepage: http://maruku.rubyforge.org

Maruku is a Markdown-superset interpreter written in Ruby.

maruku-jbrains (0.6.2)
Author: J. B. Rainsberger
Homepage: http://github.com/jbrains/maruku

Render Markdown documents, with a few extras

patcito-maruku (0.6.0)
Author: Andrea Censi
Rubyforge: http://rubyforge.org/projects/maruku
Homepage: http://maruku.rubyforge.org

Maruku is a Markdown-superset interpreter written in Ruby.

scratch_pad-filters-maruku (0.0.3)
Author: Raving Genius
Rubyforge: http://rubyforge.org/projects/scratch_pad-filters-maruku
Homepage: https://github.com/ravinggenius/scratch_pad-filters-maruku

Maruku-wrapping filter gem for ScratchPad

sinatra-maruku (1.0.0.2)
Author: Wlodek Bzyl
Homepage: http://github.com/wbzyl/sinatra-maruku

An extension providing Maruku templates for Sinatra applications.

-n: indicate the gem name;

-d: detail information;

-b: query from both local and remote repositories.

This “gem query” command of gem looks very similar to the “apt-cache search” command of “apt“.

I refer here.

Comments