Ruby+gem Common Commands

Source: Internet
Author: User

GEM is a file organization package, and many of the general Ruby Plugins are provided by this variety of packages. Let's take a look at the use of gems

Ruby-v #查看ruby version ruby-e "require" watir "; Puts Watir::ie::version ' #查看watir版本

RVM list Known #列出已知的ruby版本

RVM Install 1.9.3

RVM Use 1.9.3 | RVM Use System

RVM Use 1.9.3--default

RVM List #列出本地ruby版本

RVM Remove 1.9.2

For details see RVM Practical Guide Https://ruby-china.org/wiki/rvm-guide

Gem-v #gem版本

Gem Source #gem资源

Gem sources-a url |gem sources-r URL #gem添加或删除配置源

Gem Update #更新所有包

Gem Update--system #更新RubyGems软件

Gem install Rake #安装rake, from a local or remote server

Gem install rake--remote #安装rake from a remote server

Gem install watir-v (or--version) 1.6.2# specifies the installation version of the

Gem Uninstall Rake #卸载rake包

Gem List D #列出本地以d打头的包

Gem Query-n ' [0-9] '--local #查找本地含有数字的包

Gem Search Log--both #从本地和远程服务器上查找含有log字符串的包

Gem Search Log--remoter #只从远程服务器上查找含有log字符串的包

Gem Search-r log #只从远程服务器上查找含有log字符串的包

Gem Help #提醒式的帮助

Gem Help install #列出install命令 assistance

Gem Help examples #列出gem命令使用一些例子

Gem Build Rake.gemspec #把rake. Gemspec compiled into Rake.gem

Gem Check-v Pkg/rake-0.4.0.gem #检测rake是否有效

Gem Cleanup #清除所有包旧版本, keep the latest version

Gem Contents Rake #显示rake包中所包含的文件

Gem Dependency rails-v 0.10.1 #列出与rails相互依赖的包

Gem Environment #查看gem的环境

Ruby+gem Common Commands

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.