学习Ruby你须要了解的相关知识(rvm, gem, bundle, rake, rails等)

这篇文章主要介绍了学习Ruby你须要了解的相关知识(rvm, gem, bundle, rake, rails等),须要的朋友能够参考下
 
 

Rubyhtml

这个就不用多说了数据库

RVMruby

用于帮你安装Ruby环境,帮你管理多个Ruby环境,帮你管理你开发的每一个Ruby应用使用机器上哪一个Ruby环境。Ruby环境不单单是Ruby自己,还包括依赖的第三方Ruby插件。都由RVM管理。app

Rails框架

这个也不用多说,著名开发框架。详细看 http://zh.wikipedia.org/wiki/Ruby_on_Railsdom

RubyGems工具

RubyGems是一个方便而强大的Ruby程序包管理器( package manager),相似RedHat的RPM.它将一个Ruby应用程序打包到一个gem里,做为一个安装单元。无需安装,最新的Ruby版本已经包含RubyGems了。学习

Gemui

Gem是封装起来的Ruby应用程序或代码库。插件

注:在终端使用的gem命令,是指经过RubyGems管理Gem包。

Gemfile

定义你的应用依赖哪些第三方包,bundle根据该配置去寻找这些包。

Rake

Rake是全部须要安装的Gem中最重要的一个,而且它应该始终是你在系统上第一个安装的Gem。Rake是一个构建工具,和Make很类似,但它容许用Ruby来写Rakefile(如何进行构建的定义文件),其中使用了一种特定的DSL(domain-specific language,领域专用语言),在保持Ruby强大功能的同时提供很高的可读性。 Rails用rake扩展来完成多种不容任务,如数据库初始化、更新等。

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:我的感受有点相似Symfony2中的app/console

详细 http://rake.rubyforge.org/

Rakefile

Rakefile是由Ruby编写,Rake的命令执行就是由Rakefile文件定义。

In a gem's context, the Rakefile is extremely useful. It can hold various tasks to help building, testing and debugging your gem, among all other things that you might find useful.

详细: http://rake.rubyforge.org/files/doc/rakefile_rdoc.html

Bundle

至关于多个RubyGems批处理运行。在配置文件gemfilel里说明你的应用依赖哪些第三方包,他自动帮你下载安装多个包,而且会下载这些包依赖的包。

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.

相关文章
相关标签/搜索