flavorjones/loofah-activerecord — pull request #2 by igal (2012-08-11 20:54:37+00:00)
Title: Add support for Rails 3.1 and 3.2, fix tests for Rails 2.3 and 3.0, and fix test infrastructure

Mike: Thanks for the useful library. I followed your coding conventions, did not change any behaviors, did not break compatibility, and treaded as lightly as I could to make these fixes. I'm sorry that this includes multiple patches, but they're all closely related and rely on each other. I'll be glad to do whatever rework is needed for you to be comfortable with merging this. Thanks!

...

This pull request:

* Adds Rails 3.1 and 3.2 support and tests.
* Fixes Rails 3.0 tests by upgrading to 3.0.3 which relaxes which Bundler version is allowed to allow use of Bundler 1.x, rather than just Bundler 1.0.
* Fixes Rails 2.3 tests by upgrading to 2.3.14 which works around changes made in newer versions of Rubygems that no longer provide Mutex.
* Fixes `generate_test_directory` to install Loofah initializers into test apps, previously one had to remember to add these manually after adding a Rails test suite.
* Fixes `generate_test_directory` to use `/usr/bin/env ruby` rather than `/usr/bin/ruby`.