rubygems/rubygems — Issue #256: rubygems 1.8.14 breaks after loading yaml
Author: vjoel
Created: 2012-01-06 19:20:22+00:00
State: open

The following started happening after updating rubygems to 1.8.14. This is on ruby 1.9.3p0 (2011-10-30) [x86_64-linux]. Confirmed on several installations. Reverting to 1.8.11 (or 1.8.12) avoids the problem.

require 'yaml'
require 'nokogiri' # any gem here

__END__
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:50:in `initialize': uninitialized constant Gem::Requirement (NameError)
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:1208:in `new'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:1208:in `gem'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:651:in `load_yaml'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb:18:in `'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:8:in `'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:203:in `try_activate'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:in `rescue in require'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from gem-bug.rb:2:in `

'