From: Jarmo Pertman Date: 2011-01-27T07:30:53+09:00 Subject: how to build gem whose dependencies depend of the platform? Hi! I need to build a gem whose dependencies are dependent of the platform itself. For example when `gem install my_gem` is issued under Windows, then in gemspec i have to have spec.add_dependency("gemX"), but if the command is executed under linux then i need to have spec.add_dependency("gemY"). Is there any easy way to do this or should i just do it like this instead: 1) remove all platform specific dependencies from gemspec 2) when loading the gem, then use RUBY_PLATFORM to decide what gems to load and rescue Gem::LoadError to print out friendly messages like "please install gemX" Jarmo