Is it possible to add a gem dependency only if the person is using a certain version of ruby?
Background: I\'m working on a fork of a project that u
You can't. You need to build two gems, one with
spec.required_ruby_version = '~> 1.8.6'
and one with
spec.required_ruby_version = '~> 1.9.1' spec.add_dependency 'test-unit', '~> 2.0.5'