Cache Money is a plugin for ActiveRecord that transparently provides write-through and read-through caching functionality using Memcached. With
Cache Money, queries are automatically cached for you; and similarly, cache expiry happens automatically as after_save and after_destroy events.
I’m working on a problem for a client which involves connecting to a Microsoft SQL Server 2005 database from Linux using Ruby. Here’s what I did to get it working, based off some useful instructions that are tailored for Ruby on Rails:
Central point to collect locale data for use in Ruby on Rails.
Unfortunately, by default plugin tests are pretty bland. They use the plain unit test suite supplied by Ruby, and not any of the extended Rails test framework. This will leave our plugin’s test classes with no access to fixtures, database.yml configuration, or any of those nice class auto-loading features.
A surprisingly large number of plugins have no tests at all. Part of the reason might be that writing a plugin test is a little bit harder than writing a normal unit test.
After 2 1/2 years of blood, sweat, tears, and the occasional Jägermeister, I’m finally officially announcing a project I’ve been quietly working on: state_machine.
Simplifies plugin testing by creating an isolated Rails environment that simulates its usage in a real application
It turned out that the test subject didn't know that longdesc even existed before the tester told him about it. Can you blame him?