Ruby
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 environment is not only Ruby itself, but also a third-party Ruby plug-in on which it depends. All are managed by rvm.
Rails
Needless to say, this is a well-known development framework. Look at http://zh.wikipedia.org/wiki/Ruby_on_Rails in detail
Rubygems
Rubygems is a convenient and powerful Ruby Package Manager, similar to the RedHat RPM. It packs a ruby application into a gem and acts as an installation unit. No installation required. The latest Ruby version already contains rubygems.
Gem
GEM is a encapsulated Ruby application or code library.
Note: The Gem command used on the terminal refers to managing the gem package through rubygems.
Gemfile
Define which third-party packages your application depends on. Bundle searches for these packages based on the configuration.
Rake
Rake is the most important gem to be installed, and it should always be the first gem installed on the system. Rake is a build tool similar to make, but it allows Ruby to write rakefile (how to build a definition file ), specifically, a specific DSL (domain-specific language) is used to provide high readability while maintaining Ruby's powerful functions. Rails uses rake extension to complete a variety of undesirable tasks, such as database initialization and updates.
Rake is a build language, similar in purpose to make and ant. like make and ant it's a domain specific language, unlike those two it's an internal DSL programmed in the ruby language.
PS: I personally think it is similar to the app/console in symfony2.
Detailed http://rake.rubyforge.org/
Rakefile
Rakefile is written in ruby, And the rake command execution is defined by the rakefile file.
In a gem's context, the rakefile is extremely useful. It can hold varous tasks to help building, testing and debugging your gem, among all other things that you might find useful.
Detailed: http://rake.rubyforge.org/files/doc/rakefile_rdoc.html
Bundle
It is equivalent to running multiple rubygems batches. In the configuration file gemfilel, describe which third-party packages your application depends on. It automatically downloads and installs multiple packages for you and downloads the packages that these packages depend on.
Bundler maintains a consistent environment for Ruby applications. it tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
Refer:
- Http://rake.rubyforge.org/
- Http://rake.rubyforge.org/files/doc/rakefile_rdoc.html
- Http://yinghuayuan8866.blog.163.com/blog/static/2245702720122909571/
- Http://www.iteye.com/topic/300375
- Http://martinfowler.com/articles/rake.html
- Http://ruby-china.org/topics/2223
- Http://www.pcw8510.com /? P = 1086