I'm building a gem that needs a json gem installed in order for it to work. It doesn't matter which json gem: json_pure, json-jruby, or the C-based json.
Is there a good way of defining this in a gemspec? This response suggests maintaining a completely separate gem for each version, but it seems like there has got to be a better way.
Does anybody have any experience with this?
Should I just use the spec.requirements option to give the user a notice that he/she needs a json gem?