Common Ruby + GEM commands

Source: Internet
Author: User

Ruby-V # view Ruby version

Ruby-e ''require "watir"; puts watir: IE: version'' # view watir version
Gem-V # gem version
Gem update # update all packages
Gem update -- System # update rubygems Software
Gem install rake # Install rake from a local or remote server
Gem install rake -- remote # Install rake from a remote server
Gem install watir-V (or -- version) 1.6.2 # specify
Gem uninstall rake # uninstall the rake package
Gem List D # list local packages with D Headers
Gem query-n'' [0-9] ''-- local # search for packages with numbers on the local device.
Gem search log -- both # search for packages containing log strings from local and remote servers
Gem search log -- remoter # search for packages containing log strings only on the remote server
Gem search-r log # search for packages containing log strings only on the remote server
Gem help # Wake-up help
Gem help install # list the install Command help
Gem help examples # list some examples of using the gem command
Gem build rake. gemspec # compile rake. gemspec into rake. Gem
Gem check-v pkg/rake-0.4.0.gem # Check whether rake is valid
Gem cleanup # Clear old versions of all packages and keep the latest version
Gem contents rake # display the files contained in the rake package
Gem dependency rails-V 0.10.1 # list packages that are mutually dependent on rails
Gem environment # view the gem Environment

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.