This is going to be problematic. gemspecs don't currently have any way to have conditional dependencies based on platform or version. The end result is the gemspec that gets written out reflects the runtime environment it was written under. You can see it in the jeweler.gemspec written out below.