[Rubygems-developers] [ rubygems-Bugs-28356 ] gem which only shows one possible option

noreply at rubyforge.org noreply at rubyforge.org
Sat Nov 13 11:19:14 EST 2010


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: None
Priority: 3
Submitted By: Roger Pack (rogerdpack)
Assigned to: John Barnette (jbarnette)
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: 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


More information about the Rubygems-developers mailing list