新手问题 gem 命令能否直接查看 gem 的具体信息?

Leslieranaa · January 14, 2020 · Last by Leslieranaa replied at January 14, 2020 · 2543 hits

大致看了一下 gem 的选项,好像并没有直接查看作者,功能介绍等关于 gem 信息的命令。

昨天使用 pacman -Qi 命令,连包编译的时间信息都显示了,但是 gem 包好像并没有那么具体的显示。

问题一:那么到底有没有类似“gem show”(我编造的) 一样的命令,可以不用去 rubygems 上搜索,就可以查看非常详细的信息呢?

问题二:有没有能够直接查看 gem 文档的命令,而不是打开 gem server 挨个找。(并且 gem server 打开的网页右上角搜索功能失效)

问题三:以.rdoc 结尾的文件,有什么工具来查看?我的 vscode 上的 rdoc 插件无效,类似下图,右上角并没有出现 像插件所说的 打开 md 文件时一样的“打开侧边预览”选项

https://guides.rubygems.org/command-reference/

Please refer the above link. And try beblow command gem list devise -d

Reply to ken

thank you very much , i should have considered the official document of gem rather than merely looking at the console's command 'gem -h'

Leslieranaa closed this topic. 14 Jan 12:56
You need to Sign in before reply, if you don't have an account, please Sign up first.