ChinaonRails / Ruby on Rails / Plugins
- Validatable
Validatable is a library for adding validations.
by Jay Fields

http://validatable.rubyforge.org/
Association add-on for the Validatable gem
http://github.com/rubiii/validatable_associations... 9 篇回复 | 参与讨论 | bd7lx | | | | | | | | | 
- http://god.rubyforge.org/
其实就是跟监控的monit软件的作用差不多, monit用到了rubywork上
http://chinaonrails.com/q/rubywork
透明还对 系统监控工具:monit和runit进行了比较
http://chinaonrails.com/topic/view/381.html

此插件目前至少还不能算是可以无处不在(局限linux的环境)
God currently only works on Linux, BSD, and Darwin systems. No support for Windows is planned. ... 5 篇回复 | 参与讨论 | bd7lx | | | | | | | | | 
- 安装:
gem install contacts_cn
使用:
Contacts.new(:sina,username,password)
Contacts.new(:net_ease,username,password) #网易
Contacts.new(:sohu,username,password)
Contacts::Sina.new(username,password)
username需要加上域名... 2 篇回复 | 参与讨论 | langwangff | | | | | | | | | 
- http://blog.segment7.net/articles/2010/08/29/oldest-gems-by-date
99% 2004年诞生
16-03-2000 rquery-0.1.2
01-01-2004 rubyslippers-0.93
02-01-2004 rwdaddresses-0.91
06-01-2004 rwddemo-0.7
08-01-2004 rubyslippers-0.94
11-01-2004 rwdaddresses-0.92
18-08-2004 ncursesw-0.9.2
18-08-2004 ncursesw-0.9.1.a
18-08-2004 ncurses-0.9.1
18-08-2004 ncursesw-0.9.1
15-09-2004 rake-0.4.8
15-09-2004 an-app-0.0.3
17-09-2004 libxosd-ruby-0.4
17-09-2004 rlirc-0.3.1
17-09-2004 libxosd2-ruby-0.4
19-09-2004 vruby-2004.08.07
19-09-2004 swin-2004.03.14
20-09-2004 gnuplot-1.0
20-09-2004 vim-ruby-2004.09.20
20-09-2004 sqlite-ruby-2.0.3
23-09-2004 extensions-0.4.0
24-09-2004 termios-0.9.4
25-09-2004 diff-lcs-1.1.1
26-09-2004 copland-0.8.0
27-09-2004 cmdparse-1.0.0
27-09-2004 archive-tar-minitar-0.5.1
27-09-2004 sqlite-ruby-2.1.0
27-09-2004 amatch-0.1.3
29-09-2004 sqlite-ruby-2.1.0
29-09-2004 term-ansicolor-0.0.4
30-09-2004 file-tail-0.1.2
30-09-2004 latex-0.1.1
30-09-2004 lazylist-0.1.2
01-10-2004 jobserver-0.1.4
01-10-2004 ctapi-0.2.2
01-10-2004 fxruby-1.2.2
01-10-2004 genx4r-0.04
02-10-2004 complearn-0.6.2
02-10-2004 yip-0.8.2
04-10-2004 extensions-0.5.0
06-10-2004 ruby-activeldap-0.4.1
07-10-2004 dnssd-0.6.0
07-10-2004 getopt-declare-1.09.7
07-10-2004 ruby-activeldap-0.4.2
08-10-2004 ruby-activeldap-0.4.3
08-10-2004 dev-utils-1.0
10-10-2004 ruby-activeldap-0.4.4
11-10-2004 copland-1.0.0
13-10-2004 dev-utils-1.0.1
14-10-2004 needle-0.5.0
16-10-2004 builder-1.2.0
16-10-2004 builder-1.1.0
18-10-2004 SimpleSearch-0.5.0
19-10-2004 latex-0.1.2
20-10-2004 mysql-2.5.1
20-10-2004 diff-lcs-1.1.2
20-10-2004 postgres-0.7.1
21-10-2004 needle-0.6.0
21-10-2004 fcgi-0.8.5
21-10-2004 ruby-activeldap-0.5.0
21-10-2004 nitro-0.1.2
22-10-2004 ruby-activeldap-0.5.1
22-10-2004 ruby-activeldap-0.5.2
22-10-2004 rmail-0.17
23-10-2004 formvalidator-0.1.3
23-10-2004 jpeg2pdf-0.12
23-10-2004 xhtmldiff-1.0.0
24-10-2004 rwdtinker-1.2
24-10-2004 hprevalence-0.1.0
25-10-2004 actionpack-0.9.0
25-10-2004 test-unit-mock-0.30
25-10-2004 rwdtinker-1.23
25-10-2004 rubyslippers-0.92
25-10-2004 rails-0.8.0
25-10-2004 rwddemo-0.6
25-10-2004 activerecord-1.0.0
25-10-2004 actionmailer-0.3.0
25-10-2004 nitro-0.2.0
25-10-2004 algorithm-diff-0.1
26-10-2004 sqlite-ruby-2.2.0
27-10-2004 io-reactor-0.05
27-10-2004 rwdshell-0.9
27-10-2004 sqlite-ruby-2.2.0
27-10-2004 rwdaddresses-0.8
27-10-2004 ruvi-0.4.12
27-10-2004 hprevalence-0.1.1
27-10-2004 crosscase-0.0.1
28-10-2004 needle-0.9.0
28-10-2004 rwdaddresses-0.9
29-10-2004 rwdschedule-0.5
29-10-2004 dbc-1.1.0
29-10-2004 ruby-activeldap-0.5.3
30-10-2004 rake-0.4.9
30-10-2004 rwdtinker-1.24
30-10-2004 builder-1.2.1
31-10-2004 narf-0.5.1
01-11-2004 lockfile-1.1.0
01-11-2004 posixlock-0.0.1
01-11-2004 dbc-1.1.1
01-11-2004 rq-0.1.7... 0 篇回复 | 参与讨论 | bd7lx | | | | | | | | | 
- http://blogs.smarteguru.com/2008/09/currency-exchange-plugin-in-ruby-on-rails/
每天更新的汇率转换

http://github.com/jasonfranklin-stokes/currencyexchange/tree/master... 6 篇回复 | 参与讨论 | bd7lx | | | | | | | | | 
- http://rubylearning.com/blog/2008/08/21/tmail-sending-email/
插件Tmail
http://tmail.rubyforge.org/index.html
相关发信的话题
http://chinaonrails.com/topic/view/722.html
... 20 篇回复 | 参与讨论 | bd7lx | | | | | | | | | 
- 在网上找了这么一款插件,
http://blog.sina.com.cn/s/blog_4fc2b1b80100cz1p.html
可以嵌入进来都不能在规定时间内删除缓存页面。
做法是
先
ruby script/plugin install http://svn.livsey.org/plugins/timed_fragment_cache
安装完以后,在页面
<% cache("rrrr" , 1.minutes.from_now )do%>
。。。。。。
<%end%>
这样调用。不知道有没有问题。
谢谢。... 0 篇回复 | 参与讨论 | ericliu | | | | | | | | | 
- <% cache("aabbcc" ,{:expire => 1.minutes} )do%>
.......
<%end%>
像这样设置以后,aabbcc一直处于缓存状态,即使1分钟过去后,依然缓存。
http://pickerel.javaeye.com/blog/620870
上面说需要设置 session 过期,是这样做吗?
ActionController::Base.session_options[:expire_after] = 1.seconds
为什么设置一秒?有的人设置 2years
它俩有什么关系吗... 0 篇回复 | 参与讨论 | ericliu | | | | | | | | | 
- 代码:http://github.com/fredwu/datamappify
这几天写了这个插件。出发点是因为之前尝试使用了Datamapper,因为AR的db migration实在是很麻烦(当然这个取决于项目)。可惜Datamapper的bug太多,所以最后基本上还是不得不用AR。
如果能将两者合一就好了。
Datamappify就是“借鉴”了Datamapper的DSL,自动创建schema.rb,然后auto_migrate就可以自动更新数据库结构了。
... 3 篇回复 | 参与讨论 | canglan | | | | | | | | | 
- http://yehudakatz.com/2010/08/21/using-considered-harmful-or-whats-wrong-with
比如在gem里面定义的依赖关系的建议如下:
So for instance, let’s take a look at the dependencies listed in the actionpack gem:
activemodel (= 3.0.0.rc, runtime)
activesupport (= 3.0.0.rc, runtime)
builder (~> 2.1.2, runtime)
erubis (~> 2.6.6, runtime)
i18n (~> 0.4.1, runtime)
rack (~> 1.2.1, runtime)
rack-mount (~> 0.6.9, runtime)
rack-test (~> 0.5.4, runtime)
tzinfo (~> 0.3.22, runtime)
最后耶胡大佬说:
关于版本建议,并不一定适用于应用程序使用捆扎机。
因为根据Gemfile.lock文件定义检查到版本控制 ,把 所有>= 转变为直接的硬依赖。 之后可能会运行bundle update都gems将更新到最新版本,不要忘记有这个可能性。

到底哪个有害呢?捆扎机还是版本建议书... 0 篇回复 | 参与讨论 | bd7lx | | | | | | | | | 
- http://rails-engines.org/news/2007/12/11/engines-2-0-ish/
没有挤进2.0的,也高喊2.0啦,支持2.0啦... 3 篇回复 | 参与讨论 | bd7lx | | | | | | | | | 
- http://railspikes.com/2007/9/13/rvideo-is-alive-really
包装了
ffmpeg 和 flvtool2
视频转换工具
的gem
还没正式的发布... 15 篇回复 | 参与讨论 | bd7lx | | | | | | | | | 
- http://intridea.com/2008/6/23/subdomainfu-a-new-way-to-tame-the-subdomain
SubdomainFu 凌驾在顶层的Rails的 URL Rewriting 引擎之上。
使用此插件就可以在任何之处生成URLs: 通过 url_for, 以 named routes和resources-based routes内部方式来实现
配置也非常的简单
http://github.com/mbleigh/subdomain-fu/tree/master
其他的努力:
http://chinaonrails.com/topic/view/124.html
... 22 篇回复 | 参与讨论 | bd7lx | | | | | | | | | 
- http://optiflag.rubyforge.org/

声称是Ruby Command-Line DSL Parser
ruby dbchecker.rb -log /var/log/dbchecker -user wluser -password ch3ckM8
创新的应用方式示范例子有:
http://optiflag.rubyforge.org/examples.html... 7 篇回复 | 参与讨论 | bd7lx | | | | | | | | | 
- 大家好,
rails_best_practices gem 0.4.0发布,现在已经支持rails3
项目地址:http://github.com/flyerhzm/rails_best_practices
主要做了一下几方面的工作
1. Move finder to named_scope和Keep Finders on Their Own Model只支持rails2,rails3已经不需要检查了(因为rails3的提供的finder接口非常良好)
2. 重写了Overuse route customizations, Needless deep nesting, Not use default route来支持rails3最新的route接口
3. 其它的检查基本可以直接拿来用
由于手头上rails3的项目比较少,实际测试不多,希望大家能够拿它来检查一下你们写的rails3项目代码,欢迎任何反馈和建议
谢谢... 2 篇回复 | 参与讨论 | flyerhzm | | | | | | | | |  创建新主题 | RSS | NORMAL Mode |