Bugs item #27944, was opened at 2010-03-08 17:50 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=575&aid=27944&group_id=126
Category: #gem and #require methods Group: v1.3.x >Status: Closed >Resolution: Rejected Priority: 1 Submitted By: postmodern (postmodern) Assigned to: Eric Hodel (drbrain) Summary: require does not populate Gem.loaded_specs under Ruby 1.9.1. Initial Comment: I recently upgraded to RubyGems 1.3.6 under Ruby 1.8.7 and 1.9.1. I noticed that *only* under Ruby 1.9.1, the 'require' method would not populate Gem.loaded_specs: >> RUBY_VERSION # => "1.9.1" >> Gem.loaded_specs # => {} >> require 'rack' # => true >> Gem.loaded_specs # => {} ---------------------------------------------------------------------- >Comment By: Ryan Davis (zenspider) Date: 2010-11-12 17:03 Message: no response. ---------------------------------------------------------------------- Comment By: Ryan Davis (zenspider) Date: 2010-03-09 00:53 Message: That is because the spec isn't loaded under ruby 1.9.x. That is because ruby 1.9 bypasses rubygems and uses the gem prelude to populate the load path. Inspect $: to see. I don't like gem-prelude, personally, but I don't think it is going to change in ruby 1.9.x. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=575&aid=27944&group_id=126 _______________________________________________ Rubygems-developers mailing list http://rubyforge.org/projects/rubygems Rubygems-developers@rubyforge.org http://rubyforge.org/mailman/listinfo/rubygems-developers