Is it possible to conditionally set a dependency on a gem at install time? Here's my situation which will hopefully clarify the question.
There is a gem I maintain that depends on the json gem. However, I frequently use jruby which has a port of the json gem that's called json-jruby. To work around this I have to build two separate gems for each dependency. I'd like to build one gem that either says it depends on json OR json-jruby, or it checks at install time and uses the right dependency.
Anyone have a good solution to this?