Tho*_*ton 32
以下信息是从下面链接的rubygems命令参考中提取的.
http://guides.rubygems.org/command-reference/#gem-dependency
你要求的第一个命令是"宝石依赖".以下是命令说明.
gem dependency GEMNAME [options]
Options:
-v, --version VERSION Specify version of gem to uninstall
-r, --[no-]reverse-dependencies Include reverse dependencies in the output
-p, --pipe Pipe Format (name --version ver)
Common Options:
--source URL Use URL as the remote source for gems
-h, --help Get help on this command
--config-file FILE Use this config file instead of default
--backtrace Show stack backtrace on errors
--debug Turn on Ruby debugging
Arguments:
GEMNAME name of gems to show
Summary:
Show the dependencies of an installed gem
Defaults:
--version '> 0' --no-reverse
Run Code Online (Sandbox Code Playgroud)
你需要的第二个命令是"gem install".依赖关系会自动安装.有关更多详细信息,请阅读命令参考中的以下引用.
"gem install"将安装指定的gem.它将尝试本地安装(即当前目录中的.gem文件),如果失败,它将尝试下载并安装您想要的最新版本的gem.
如果远程安装gem,并且它依赖于未安装的其他gem,那么gem将在您确认操作后下载并安装它们.
| 归档时间: |
|
| 查看次数: |
15550 次 |
| 最近记录: |