On Dec 27, 2007, at 14:35 PM, Chad Woolley wrote: > I have a test scenario where I have two test gems installed - they > have an identical platform and version, but different platforms (one > 'ruby', one 'mswin32'). This is on a mac. > > The problem is that I can't see how to make SourceIndex#search select > based on platform - it only seems to search based on name and version. > Given the gems described above, there's no way to specifically ask if > the ruby or mswin32 gem is installed. In other words, there's no way > to pass a Gem::Dependency that will select a specific platform.
I think currently the RubyGems code post-filters. It was getting late in the release when I noticed the problem, so I didn't try to make a better API for it. I'm open to suggestions. _______________________________________________ Rubygems-developers mailing list [email protected] http://rubyforge.org/mailman/listinfo/rubygems-developers
