Project

General

Profile

Actions

Bug #1350

closed

gem method with version dependency fails

Added by luislavena (Luis Lavena) over 15 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
1.9.1-p0 darwin9/mingw32
Backport:
[ruby-core:23113]

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:

http://pastie.org/436343

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0