现在的位置: 首页 > 综合 > 正文

Rails 应用的一些gems ,插件

2018年04月19日 ⁄ 综合 ⁄ 共 1517字 ⁄ 字号 评论关闭

Rails 应用的一些gems ,插件

2011-08-05 07:56:23cnblogs.com-WTF - 

点击数:15

  

rubyGems 是什么?
  RubyGems(简称 gems)是一个用于对 Rails 组件进行打包的 Ruby 打包系统。 它提供一个分发 Ruby 程序和库的标准格式,还提供一个管理程序包安装的工具。
  RubyGems的功能类似于Linux下的apt-get。使用它可以方便第从远程服务器下载并安装Rails。
  打开命令行窗口(cmd),输入执行命令 gem install rails --remote 或 gem install rails--include-dependencies。

1. gem on rails
  Link or freeze RubyGems into your rails apps, instead of just plugins. 
2.  request-log-analytizer
3.  mem-cached  :: cached_model  
安装: sudo gem install cached_model
Many speedy sites use memcached to save the results of expensive database queries and intense rendered templates. This is a basic introduction to using memcached with Rails. 
4. CSS graphs :报表工具
A Ruby on Rails helper for making simple graphs. The graphs use onlyCSS/HTML (and an optional gradient image).
5. Bullet ::  数据查询性能优化
The Bullet plugin/gem is designed to help you increase your application’s performance by reducing the number of queries it makes. 
6.rails_reviewer        
项目遇到严重的性能问题,主要是数据库查询过多, 推荐rails_reviewer插件
7.Benchmark    基准测试
8.query_reviewer   
9.Flog是一个计算你的Ruby代码复杂度的工具,来自大牛Ryan Davis的seattle.rb项目
10.God  ,, monit 的ruby 版本
11. rails application visuallizer  ,将rails项目中的类 模型 --关系,可视化
12.google chart api  , 图表生成
13. Rseg
Rseg 是一个基于纯Ruby的中文分词插件,内置了CC-CEDICT和维基百科两本字典,目前只支持Ruby 187以上版本及UTF8编码。
14.logrotate 自动打包rails日志
15.ar_mailer是个很不错的邮件发送插件,工作原理是将邮件发送分为两部分,首先将邮件保存到数据库,然后在调用后台程序实现异步发送,可惜的是目前还不支持Rails 3,于是花了一个下午,将它移植到了Rails 3,这就是:ar_mailer_rails3
16.city_helper
省市二级联动select插件,http://www.letrails.cn/archives/city-helper-update-i18n-and-country-support/
17..rcov是一个用于诊断Ruby代码覆盖率的工具,它最主要的用途就是用于确定单元测试是否覆盖到了所有代码,rcov使用一个经过优化的C运行时,因此性能相当惊人,同时它还提供多种格式的输出。

抱歉!评论已关闭.