Project

General

Profile

Actions

Bug #2717

closed

Requiring rubygems/specification causes tons of warnings for NoMethodError

Added by sakuro (Sakuro OZAWA) almost 15 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2010-02-07 trunk 26607) [x86_64-darwin10.2.0]
Backport:
[ruby-core:28086]

Description

=begin
Strictly speaking this is a third party issue and already reported as
http://rubyforge.org/tracker/index.php?func=detail&aid=27087&group_id=126&atid=575
at 2009-09-10 but is still open with no response.

I'll post this so that other core developpers have chance to know the issue.

$ ruby -v -rrubygems/specification -e 1
ruby 1.9.2dev (2010-02-07 trunk 26607) [x86_64-darwin10.2.0]
/usr/local/lib/ruby/1.9.1/rubygems/source_index.rb:8: warning: loading in progress, circular require considered harmful - /usr/local/lib/ruby/1.9.1/rubygems/specification.rb
from ruby:0:in require' from /usr/local/lib/ruby/1.9.1/rubygems/specification.rb:28:in <top (required)>'
from /usr/local/lib/ruby/1.9.1/rubygems/specification.rb:1038:in <class:Specification>' from <internal:gem_prelude>:273:in const_missing'
from internal:gem_prelude:161:in load_full_rubygems_library' from <internal:gem_prelude>:161:in require'
from /usr/local/lib/ruby/1.9.1/rubygems.rb:1073:in <top (required)>' from /usr/local/lib/ruby/1.9.1/rubygems.rb:1073:in require'
from /usr/local/lib/ruby/1.9.1/rubygems/source_index.rb:8:in <top (required)>' from /usr/local/lib/ruby/1.9.1/rubygems/source_index.rb:8:in require'
/usr/local/lib/ruby/1.9.1/rubygems/specification.rb:530: warning: instance variable @specification_version not initialized
WARNING: #<NoMethodError: undefined method >' for nil:NilClass> Gem::Specification.new do |s| s.name = "minitest" s.version = "1.5.0" s.summary = "This minitest is bundled with Ruby" end WARNING: Invalid .gemspec format in '/usr/local/lib/ruby/gems/1.9.1/specifications/minitest.gemspec' /usr/local/lib/ruby/1.9.1/rubygems/specification.rb:530: warning: instance variable @specification_version not initialized WARNING: #<NoMethodError: undefined method >' for nil:NilClass>
Gem::Specification.new do |s|
s.name = "rake"
s.version = "0.8.7"
s.summary = "This rake is bundled with Ruby"
end
WARNING: Invalid .gemspec format in '/usr/local/lib/ruby/gems/1.9.1/specifications/rake.gemspec'
/usr/local/lib/ruby/1.9.1/rubygems/specification.rb:530: warning: instance variable @specification_version not initialized
WARNING: #<NoMethodError: undefined method `>' for nil:NilClass>
Gem::Specification.new do |s|
s.name = "rdoc"
s.version = "2.2.2"
s.summary = "This rdoc is bundled with Ruby"
end
WARNING: Invalid .gemspec format in '/usr/local/lib/ruby/gems/1.9.1/specifications/rdoc.gemspec'
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0