Ruby Gem command and rubygem command
Gem is a standard package for managing Ruby libraries and programs. It is very convenient to find, install, upgrade, and uninstall software packages through Ruby Gem (such as http://rubygems.org/)
Tutorial on creating a custom Ruby gem package, rubygem
Write a simple example
1. Create the following folder
Note: The lib directory must have a rb file with the same name as your gem.
Copy codeThe Code is as follows:$ Cd hola$ Tree.├ ── Hola.
You don't need to talk about this.
It is used to help you install the Ruby environment, help you manage multiple Ruby environments, and help you manage the Ruby environment on which the Ruby application you develop uses the machine. The
You don't need to talk about this.Rvm
It is used to help you install the ruby environment, help you manage multiple Ruby environments, and help you manage the ruby environment on which the ruby application you develop uses the machine. The ruby
The customer's server is Ubuntu + apache2 + ruby on rails. Currently, some pages on the customer's server always report the 500 error. The ruby language is only known and has not been studied in depth. I have never set up a ruby server environment,
GEM-related commands use
1. Show help and version of Gem
Copy Code code as follows:
2. List all available software for the remote library
Copy Code code as follows:
That's not much to say.
Used to help you install a ruby environment, help you manage multiple ruby environments, and help you manage which Ruby environment you use on your computer for each ruby application you develop. The ruby
Use Fastlane for fast, continuous updates and a range of issues during installation:1. Installing the Fastlane:sudo gem install FastlaneErrorERROR: Failed to build gem native extension.--remove http://rubygems.org/-a https://ruby.taobao.org/# View
Common Ruby Package Manager gem commands and common rubygem commands
1. display the help and version of gemCopy codeThe Code is as follows:Gem-h/-- help# Display the help of gem
Gem-v/-- version# Display the gem version number2.
Reprint, original link http://linux.cn/portal.php?mod=view&aid=170 using Ubuntu to build a Ruby on Rails Local development environment
Want to develop a Ruby on Rails app? Although there are already some (beginner) Ruby on Rails
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:
and provide relevant evidence. A staff member will contact you within 5 working days.