Common ruby + gem commands

Source: Internet
Author: User
Ruby + gem common commands: ruby-e & amp; #39; & amp; #39; require & quot; watir & quot; putsWatir: IE: VERSION & amp; #39; & amp; #39; # View watir version gem-v # gem version gemupdate # Update all packages gemupdate -- s ruby + gem common commands 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, install rake from the local or remote server gem install rake -- remote # install rake from the remote server gem install watir-v (or -- version) 1.6.2 # specify the installation version of the gem uninstall rake # uninstall the rake package gem list d # list the locally started package gem query-n ''[0-9]'' -- local # search for a local package containing numbers: gem search log -- both # search for a package containing log strings from the local and remote servers: gem search log -- remoter # search for a package containing log strings only from a remote server package: gem search-r log # search for packages containing log strings from the remote server only. gem help # wake-up help: gem help install # list the install command to help gem help examples # list the usage of gem commands some examples of gem build rake. gemspec # set rake. compile gemspec into rake. gem check-v pkg/rake-0.4.0.gem # check If rake is valid gem cleanup # clear all old versions of the package, keep the latest version of gem contents rake # display the file gem dependency rails-v 0.10.1 contained in the rake package # list the 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.