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 #1

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

Actions #2

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

Actions #3

Updated by yugui (Yuki Sonoda) over 15 years ago

  • Status changed from Open to Closed

=begin

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0