Bug #1350
closedgem method with version dependency fails
Description
=begin
Been trying to use 1.9.1 with certain gems, but it seems that the gem command is broken when a version dependency is specified.
See the following results:
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mingw32]¶
irb(main):001:0> RUBY_DESCRIPTION
=> "ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mingw32]"
irb(main):002:0> gem 'win32console', '>= 1.2.0'
NoMethodError: undefined method <=>' for nil:NilClass from <internal:gem_prelude>:249:in
push_gem_version_on_load_path'
from internal:gem_prelude:14:in gem' from (irb):2 from D:/Users/Luis/ruby/ruby-1.9.1-p0-i386-mingw32/bin/irb:12:in
'
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9.6.0]¶
irb(main):001:0> RUBY_DESCRIPTION
=> "ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9.6.0]"
irb(main):002:0> gem 'cucumber', '>= 0.1.0'
NoMethodError: undefined method <=>' for nil:NilClass from <internal:gem_prelude>:249:in
push_gem_version_on_load_path'
from internal:gem_prelude:14:in gem' from (irb):2 from /opt/local/bin/irb-1.9.1:12:in
'
It seems that doesn't matter what gem or version is specified, gem method fails.
=end