一些gem的简要翻译(欢迎提出问题共同讨论)
写这篇文章主要有两方面用途
1.希望给rails同行一定的帮助,翻译水平有限,贴出中英文,翻译有误的地方欢迎指正,非常感谢,转载请标明出处,谢谢。
2.加深作者对gem的理解,有需要更详细了解安装以及使用的朋友可以点击文章中的链接进入gem sources详细介绍。
3.不定期更新
版本:0.4.5
Rack::Accept is a suite of tools for Ruby/Rack applications that eases the complexity of building and interpreting the Accept* family of HTTP request headers.
Some features of the library are:
- Strict adherence to RFC 2616, specifically section 14
- Full support for the Accept, Accept-Charset, Accept-Encoding, and Accept-Language HTTP request headers
- May be used as Rack middleware or standalone
- A comprehensive test suite that covers many edge cases
Rack::Accept是一套Ruby/Rack应用的工具,该工具简化了建立应用的复杂性,解释了可接受的Http请求头系列。本库的一些功能如下:
1.严格遵守RFC 2616,具体请看section 14
2.全面支持1中的Accept, Accept-Charset, Accept-Encoding, 和Accept-Language HTTP请求头。
3.可以独立使用或者用做RACK中间件
4.拥有一个很全面的测试套间,涵盖了许多边缘情况
版本:0.0.4
Small module to track descendants in an unobtrusive way.
一些不显眼的方式追踪派生类的模块
Script for converting HTML and ERB files to slim (slim-lang.org).
It's not perfect, but certainly it helps a lot!
It's based on Hpricot. Yeah, I'm old school.
本gem是把HTML和ERB文件转换为silm模板语言的脚本,想了解slim的出门右转(slim-lang.org)
它不完美,但是无疑能帮助你很多!
它基于Hprico。呵呵,我是一个老司机。
Official Ruby-on-Rails Integration with Sass
This gem provides official integration for Ruby on Rails projects with the Sass stylesheet language.
官方Ruby-on-Rails集成Sass
本gem提供Ruby on Rails与Sass语言的官方集成
Uglifier minifies JavaScript files by wrapping UglifyJS to be accessible in Ruby
本gem压缩JavaScript文件包装为UglifyJS来访问ruby。
slim-rails provides Slim generators for Rails 3 and 4. It was based on haml-rails and it does basically the same:
- Any time you generate a controller or scaffold, you'll get Slim templates (instead of ERB)
- When your Rails application loads, Slim will be loaded and initialized automatically
- Slim templates will be respected by the view template cache digestor
slim_rails提供了为Rails3和Rails4的Slim语言生成器,它基于haml-rails,而且他们特点基本上是相同的,如下:
1.无论何时何地你用rails生成了一个控制器或者脚手架,你都会得到Slim语言的模板(替代ERB,因此ERB文件就消失了)。
2.当你加载Rails应用时,Slim将会自动初始化和加载。
3.当访问缓存器的时候,Slim模板将会被慎重对待。
This README is also available in a friendly navigable format.
Devise is a flexible authentication solution for Rails based on Warden. It:
- Is Rack based;
- Is a complete MVC solution based on Rails engines;
- Allows you to have multiple models signed in at the same time;
- Is based on a modularity concept: use only what you really need.
It's composed of 10 modules:
- Database Authenticatable: encrypts and stores a password in the database to validate the authenticity of a user while signing in. The authentication can be done both through POST requests or HTTP Basic Authentication.
- Omniauthable: adds OmniAuth (https://github.com/intridea/omniauth) support.
- Confirmable: sends emails with confirmation instructions and verifies whether an account is already confirmed during sign in.
- Recoverable: resets the user password and sends reset instructions.
- Registerable: handles signing up users through a registration process, also allowing them to edit and destroy their account.
- Rememberable: manages generating and clearing a token for remembering the user from a saved cookie.
- Trackable: tracks sign in count, timestamps and IP address.
- Timeoutable: expires sessions that have not been active in a specified period of time.
- Validatable: provides validations of email and password. It's optional and can be customized, so you're able to define your own validations.
- Lockable: locks an account after a specified number of failed sign-in attempts. Can unlock via email or after a specified time period.
Devise is guaranteed to be thread-safe on YARV. Thread-safety support on JRuby is in progress.
本自述文件也有更友好的可操纵的格式页面
Devise是一个基于Warden的,更加灵活的身份验证的rails解决方案。
1.基于Rack
2.是一个基于Rails引擎的完整MVC解决方案
3.允许多个模块同时登陆
4.基于模块化的概念:只使用你需要的
它由10个模块组成:
1.数据库验证:注册信息的同时将密码加密并且储存在数据库中以便于身份验证,无论提交POST请求还是HTTP基本身份验证的情况下都支持。
2.Omniauthable验证:添加了OmniAuth(https://github.com/intridea/omniauth)身份验证。
3.邮件确认:在登陆时发送验证邮件确认邮件已被确认。
4.重获密码:重新设置密码并且发送重设密码邮件
5.注册:控制已注册用户的功能,已注册用户可以编辑和删除他们的账户。
6.记忆cookie功能:管理创建和清楚用户已保存的cookie的记忆令牌。
7.可追踪的:追踪账户的数量,时间以及IP地址。
8.会话超时管理:在特定的时间内会话到期。
9.验证信息:提供验证邮件和密码。此功能是可选择和定制的,所以你可以定义你自己需要的验证。
10.可锁定的:在指定数量的失败登陆后锁定账户,可以通过限定时间或者邮件验证解锁账户。
Devise在YARV虚拟机上是第三方安全的,在Jruby上第三方安全正在进行中。
Create JSON structures via a Builder-style DSL
Jbuilder gives you a simple DSL for declaring JSON structures that beats massaging giant hash structures. This is particularly helpful when the generation process is fraught with conditionals and loops.
用类似ruby语法的领域语言(看了下代码,还是有些不一样)建立JSON结构的文件
使用Jbuilder,它能给你一个简单的DSL语言,JSON结构能控制伟大的哈希结构.当你建立一个条件句或者环形结构时,会特别有帮助。
Spring is a Rails application preloader. It speeds up development by keeping your application running in the background so you don't need to boot it every time you run a test, rake task or migration.
spring是一个rails应用预载器。他大大加快了开发效率,无论你运行测试,还是rake任务或数据,他都会保持后台运行,所以免去了你时刻启动的烦恼。
一些gem的简要翻译(欢迎提出问题共同讨论)的更多相关文章
- WebLogic SSRF 漏洞 (简要翻译)
[Ref]http://blog.gdssecurity.com/labs/2015/3/30/weblogic-ssrf-and-xss-cve-2014-4241-cve-2014-4210-cv ...
- Rpgmakermv(7) Chronus.js说明与简要翻译
插件地址:https://github.com/triacontane/RPGMakerMV/blob/master/Chronus.js 日语版 ゲーム内で時刻と天候の概念を表現できるプラグインです ...
- 新秀翻译(一个)——Java在继承和组合
阅读英文的程序猿的能力,这是非常重要的.过去的几年中一直在学习英语,今天心血来潮,在网上找什么鲍文简要翻译. 普通级,能力有限,看官还请大家多多指点. 译文: 本文将会举例说明Java中继承和组合的概 ...
- NIPS 2018 | 程序翻译新突破:UC伯克利提出树到树的程序翻译神经网络
NIPS 2018 | 程序翻译新突破:UC伯克利提出树到树的程序翻译神经网络 机器之心 已认证的官方帐号 49 人赞同了该文章 选自arXiv,作者:Xinyun Chen.Chang Liu. ...
- Coding in Delphi(前4章翻译版本) (PDF)
第四章翻译完成有一段时间了 写在前面的话 本次翻译纯属爱好,目的是提高对英文文档的理解和阅读能力,本文档大部分采用直 译的方式,而且保留了原来的英文.目的只是辅助大家理解,不喜勿喷.翻 ...
- 递归神经网络(RNN,Recurrent Neural Networks)和反向传播的指南 A guide to recurrent neural networks and backpropagation(转载)
摘要 这篇文章提供了一个关于递归神经网络中某些概念的指南.与前馈网络不同,RNN可能非常敏感,并且适合于过去的输入(be adapted to past inputs).反向传播学习(backprop ...
- Rpgmakermv(24 )yep_coreengine
==左部为原文,右边我做了简要翻译=================================== Introduction and Instructions ================= ...
- Hadoop专业解决方案-第12章 为Hadoop应用构建企业级的安全解决方案
一.前言: 非常感谢Hadoop专业解决方案群:313702010,兄弟们的大力支持,在此说一声辛苦了,春节期间,项目进度有所延迟,不过元宵节以后大家已经步入正轨, 目前第12章 为Hadoop应用构 ...
- Go语言 获取get、post参数
在贴代码之前如果能先理解一下golang http.request的三个属性Form.PostForm.MultipartForm应该能较好的理解代码,下面摘录一下. 以上简要翻译一下: Form:存 ...
随机推荐
- shell基础
1.显示当前登录linux系统的用户 2.当用户登录到linux系统后,一旦出现提示符时,便可以输入操作命令了.命令可以分为如下两类: (1).bash内置的命令: (2).应用程序. 怎么知道哪些指 ...
- uploadify图片上传发生Security Error
今天在使用uploadify进行图片上传的时候出现security error.其根本原因是flash跨域问题.主要原因是因为配了两个域名www.ttyouni.com 和 ttyouni.com 在 ...
- linux 源码安装
下载源码安装包,一般为.tar.gz格式 解压源码至文件夹,linux终端进入该文件夹,安装只需三步,第四步为扫尾工作: ./configure --prefix=/usr/self/文件夹名称 ...
- DataSet读取XML
string file = File.ReadAllText("c://123.xml", Encoding.Default); using (DataSet ds = new D ...
- SQLServer 常用日期处理
select GETDATE() as '当前日期',DateName(year,GetDate()) as '年',DateName(month,GetDate()) as '月',DateName ...
- Xcode常用的快捷键有哪些?
作者:吴白 原文链接:http://www.jianshu.com/p/de7806f6143b 手指在键盘上飞速跳跃,终端上的代码也随着飞舞,是的这确实很酷.优秀的程序员总是这么一群人,他们不拘于现 ...
- oracle必须启动哪些服务?
对新手来说,要是只用Oracle自带的sql*plus的话,只要启动OracleServiceORCL即可,要是使用PL/SQL Developer等第三方工具的话,OracleOraDb11g_ho ...
- MFC的自定义消息的定义与使用
自定义消息的响应和资源消息的响应有很多类似之处:资源消息的响应是以资源的ID号作为标识的:自定义的消息要自己声明消息ID. 一. 定义: 第一步要声明消息: #define WM_ ...
- mongodb账号安全操作
安装服务 mongod --install --serviceName mongodb --storageEngine=mmapv1 --dbpath i:\mongodb\data --journa ...
- MySQL的表的优化和列类型的选择
列选择原则: 1:字段类型优先级 整型 > date,time > enum,char>varchar > blob 列的特点分析: 整型: 定长,没有国家/地区之分,没有 ...