frodsan/mongoid-minitest — pull request #9 by gr4y (2012-08-09 20:14:48+00:00)
Title: Fixed required_ruby_version in gemspec

Hi,

it's me again. I added the new version you released today to my Gemfile and ran the `bundle update` command. I was a little puzzled when Bundler told me this:

Installing mongoid-minitest (0.1.0)
Gem::InstallError: mongoid-minitest requires Ruby version = 1.9.3.
An error occured while installing mongoid-minitest (0.1.0), and Bundler cannot continue.
Make sure that `gem install mongoid-minitest -v '0.1.0'` succeeds before bundling.

In fact I am using ruby 1.9.3-p194, so I took a look into the gemspec and found the line which causes the problem. Based on the [rubygems doc](http://docs.rubygems.org/read/chapter/20#required_ruby_version) I played around with the `required_ruby_version` and found out that this would do the trick:

``` ruby
gem.required_ruby_version = '>= 1.9.3'
```

Installing on 1.9.2 doesn't work now, but installing on 1.9.3 works. By the way: Why are you requiring 1.9.3? I ran the test suite on an ruby 1.9.2-p320 and nothing failed there. And as far as I saw neither mongoid nor minitest are requiring 1.9.3. :-)