Not sure how you could make this play nicely with Jeweler, but maybe
the following in your actual gemspec will work:
if RUBY_VERSION.starts_with?("1.9")
add_dependency 'test-unit'
end
--
Pat
I don't know about having two gemspecs, because that means two gems,
which starts to get a little weird.
Could you point us to the gem in question to take a look?
The project is http://github.com/agrimm/chaser and
http://gemcutter.org/gems/chaser , and it uses some of the stuff
removed from the Test::Unit standard library in Ruby 1.9.1, as can be
seen in http://gist.github.com/228900. It can run in ruby 1.8 without
the test-unit gem, and it can run in ruby 1.9.1 with the test-unit
gem, but it can't run in ruby 1.9.1 without the test-unit gem.
Andrew