Learn about Ruby (RVM, Gem, bundle, rake, rails, etc.) _ruby topics you need to know

Source: Internet
Author: User

Ruby

That's not much to say.

RVM

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 environment is not just Ruby itself, it also includes dependent Third-party Ruby Plug-ins. are managed by RVM.

Rails

This also needless to say, the famous development framework. See Http://zh.wikipedia.org/wiki/Ruby_on_Rails in detail

RubyGems

RubyGems is a handy and powerful Ruby Package Manager (Package Manager), similar to Redhat rpm. It packs a ruby application into a gem as an installation unit. Without installation, the latest version of Ruby already contains rubygems.

Gem

Gems are encapsulated ruby applications or code libraries.

Note: The gem command used in the terminal refers to managing the gem package through RubyGems.

Gemfile

Define which Third-party packages your application relies on, and bundle to find these packages based on that configuration.

Rake

Rake is the most important of all gems that need to be installed, and it should always be the first gem you install on the system. Rake is a build tool that is similar to make, but it allows Ruby to write Rakefile (how to build a definition file) that uses a particular DSL (Domain-specific language, domain-specific language), Provides high readability while maintaining the power of Ruby. Rails uses rake extensions to accomplish a variety of tasks, such as database initialization, updates, and so on.

Rake is a builds language, similar in purpose to make and ant. Like make and ant it's Domain specific Language, unlike those two it's an internal DSL programmed in the Ruby Language.

PS: Personal feeling somewhat similar to the app/console in Symfony2

Detailed http://rake.rubyforge.org/

Rakefile

Rakefile is written by Ruby, and Rake's command execution is defined by the Rakefile file.

In a gem ' s context, the rakefile is extremely useful. It can hold various tasks to help building, testing and debugging your gems, among all other things Ful.

Detail: http://rake.rubyforge.org/files/doc/rakefile_rdoc.html

Bundle

Equivalent to multiple RubyGems batch runs. In the configuration file Gemfilel describes which Third-party packages your application relies on, he automatically downloads and installs multiple packages, and downloads the packages they depend on.

Bundler maintains a consistent environment for Ruby applications. It tracks an application's code and the RubyGems it needs to run, so this is application'll always have the exact gems ( and versions) that it needs to run.

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.