jnicklas/carrierwave-mongoid — pull request #54 by petergoldstein (2012-08-09 00:23:27+00:00)
Title: Mongoid 3.0.x support, JRuby and 1.8.7 compatibility, and Travis CI integration

This pull request consists of a number of inter-related changes. Specifically:

1) Mongoid 3.0.x support - Ensure that the carrierwave-mongoid gem works with Mongoid 3.0.x. Note that this doesn't include GridFS support, as the GridFS interface has been removed from Mongoid 3.0.x. The pull also includes a test suite that runs against both Mongoid 2.x and Mongoid 3.0.x, with the appropriate rubies.

2) JRuby compatibility - This gem should work without a problem on JRuby, but the bson_ext dependency in the gemspec made it impossible to run tests under JRuby. I moved this declaration to the Gemfile, and added the requisite json gem dependency.

3) Ruby 1.8.7 compatibility - Again, no reason why the tests shouldn't run green under Ruby 1.8.7. I added the necessary JSON gem dependency

4) Travis CI integration - I added a .travis.yml file and got everything running green. You can see my branch's test run [here](http://travis-ci.org/#!/petergoldstein/carrierwave-mongoid). Tests run the allowed matrix of rubies and Mongoid versions.

@jnicklas - To get Travis working in the base repository you'll need to grant access to Travis CI. You can find instructions [here](http://about.travis-ci.org/docs/user/getting-started/) if you're not familiar with the process.

I think this should be a pretty straightforward set of changes, but please let me know if you have any questions. Thanks.