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
Updated by shaydon (Simon Haydon) over 15 years ago
=begin
This is probably the same issue as Bug #1163 - which has a patch that works for me.
=end
Updated by luislavena (Luis Lavena) over 15 years ago
=begin
Good to know,
I did a search before submitting this patch but seems Redmine search is not indexing properly japanese text.
=end