Sounds right to me. The trick is that you only get a lock that works on a given version of ruby by running `bundle update` on that version of ruby. Someday it would be nice if the locks could co-exist. :)

On Dec 10, 2013, at 10:17 AM, Erik Michaels-Ober <notifications@github.com> wrote:

> In Gemfile:
> 
> > @@ -11,6 +11,9 @@ end
> >  group :test do
> >    gem 'childlabor'
> >    gem 'coveralls', '>=0.5.7', :require => false
> > +  # mime-types is required indirectly by coveralls
> > +  # needs to be < 2.0 to work with Ruby 1.8.7
> > +  gem 'mime-types', '~> 1.0'
> Oh, you're right. I forgot the version constraint. I thought you meant a Ruby version constraint (e.g. if RUBY_VERSION =~ /1.8.7/). This was my actual code, which does the right thing on both Ruby 1.8 and 1.9 (and 2.0 and 2.1):
> 
> gem 'mime-types', '~> 1.25', :platforms => :ruby_18
> —
> Reply to this email directly or view it on GitHub.
>