Bugs item #28356, was opened at 2010-07-05 15:27 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=575&aid=28356&group_id=126
Category: other Group: None Status: Open >Resolution: Accepted Priority: 3 Submitted By: Roger Pack (rogerdpack) >Assigned to: James Tucker (raggi) Summary: gem which only shows one possible option Initial Comment: Situation: currently if there is a conflict among gems, i.e. gem1/lib/xxx.rb and gem2/lib/xxx.rb gem which will only show one of the possibilities, which seems unexpected to me. ex: d:\dev>gem which ruby_to_ruby_c (checking gem RubyToC-1.0.0.5 for ruby_to_ruby_c) c:/ruby/lib/ruby/gems/1.8/gems/RubyToC-1.0.0.5/lib/ruby_to_ruby_c.rb d:\dev> gem uninstall RubyToC ... d:\dev>gem which ruby_to_ruby_c (checking gem ruby2c-1.0.0.7 for ruby_to_ruby_c) c:/ruby/lib/ruby/gems/1.8/gems/ruby2c-1.0.0.7/lib/ruby_to_ruby_c.rb -r ---------------------------------------------------------------------- >Comment By: James Tucker (raggi) Date: 2010-11-13 20:02 Message: It has a -a option, but it's broken. I'm fixing it now, have failing tests. I think this should move to using find_files too. ---------------------------------------------------------------------- Comment By: Roger Pack (rogerdpack) Date: 2010-11-13 16:19 Message: people depend on it to show only one? ---------------------------------------------------------------------- Comment By: John Barnette (jbarnette) Date: 2010-11-13 13:57 Message: I understand the confusion, but I think having `gem which` return multiple files at this point would be really confusing/dangerous for folks who have come to depend on it returning only one. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=575&aid=28356&group_id=126 _______________________________________________ Rubygems-developers mailing list http://rubyforge.org/projects/rubygems Rubygems-developers@rubyforge.org http://rubyforge.org/mailman/listinfo/rubygems-developers