Bugs item #29186, was opened at 2011-05-08 12:31 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=575&aid=29186&group_id=126
Category: you broke my monkeypatch! Group: None Status: Closed Resolution: Rejected Priority: 3 Submitted By: Greg Hazel (ghazel) Assigned to: Ryan Davis (zenspider) Summary: NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. Initial Comment: Upgraded from 1.7.2 to 1.8.1, got deprecation errors about rubygems itself? NOTE: Gem::SourceIndex#load_gems_in is deprecated with no replacement. It will be removed on or after 2011-11-01. Gem::SourceIndex#load_gems_in called from /usr/local/ruby-enterprise-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:320. NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01. Gem::SourceIndex#add_spec called from /usr/local/ruby-enterprise-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:127. These make no sense to me, since rubygems seems to be printing deprecation errors about its own code. The later, "NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec." is spammed easily 50 times. ---------------------------------------------------------------------- >Comment By: Greg Hazel (ghazel) Date: 2011-05-11 20:54 Message: Uh, you're not reading these, are you? "deprecated with no replacement" makes no sense. How do you perform these operations with the new version of rubygems? ---------------------------------------------------------------------- Comment By: Ryan Davis (zenspider) Date: 2011-05-11 20:53 Message: dupe. you're being a jackass both here and in IRC. ---------------------------------------------------------------------- Comment By: Alex Chaffee (alexch) Date: 2011-05-11 20:22 Message: I installed my patched version of RubyGems (see bug #29176) to get a better report and it looks like he's right: RubyGems 1.8 is complaining about its own code. Here's the list of 9 places where source_index.rb calls deprecated methods. pepper:rubygems [ruby-1.9.2-p0] alex$ gem rdoc bundler Error loading RubyGems plugin "/Users/alex/.rvm/gems/ruby-1.9.2-p0/gems/yard-0.6.4/lib/rubygems_plugin.rb": undefined method `overwrite_accessor' for Gem::Specification:Class (NoMethodError) Warning: Gem::SourceIndex.from_installed_gems is deprecated with no replacement It will be removed on or after 2011-10-01. (Further warnings suppressed until exit.) called from /Users/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/commands/rdoc_command.rb:64 Some of your installed gems called deprecated methods. See http://blog.zenspider.com/2011/05/rubygems-18-is-coming.html for background. Use 'gem pristine --all' to fix or 'rubygems update --system 1.7.2' to downgrade. Gem::SourceIndex#add_spec is deprecated; use Specification.add_spec instead. It will be removed on or after 2011-11-01. called from /Users/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127 Gem::SourceIndex#initialize is deprecated with no replacement It will be removed on or after 2011-11-01. called from /Users/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:67 Gem::SourceIndex#load_gems_in is deprecated with no replacement It will be removed on or after 2011-11-01. called from /Users/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:320 Gem::SourceIndex#refresh! is deprecated with no replacement It will be removed on or after 2011-11-01. called from /Users/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:95 Gem::SourceIndex#search is deprecated with no replacement It will be removed on or after 2011-11-01. called from /Users/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/commands/rdoc_command.rb:64 Gem::SourceIndex#spec_dirs= is deprecated; use Specification.dirs= instead. It will be removed on or after 2011-11-01. called from /Users/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:94 Gem::SourceIndex.from_gems_in is deprecated with no replacement It will be removed on or after 2011-10-01. called from /Users/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:47 Gem::SourceIndex.from_installed_gems is deprecated with no replacement It will be removed on or after 2011-10-01. called from /Users/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/commands/rdoc_command.rb:64 Gem::SourceIndex.installed_spec_directories is deprecated; use Specification.dirs instead. It will be removed on or after 2011-11-01. called from /Users/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:47 ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=575&aid=29186&group_id=126 _______________________________________________ Rubygems-developers mailing list http://rubyforge.org/projects/rubygems Rubygems-developers@rubyforge.org http://rubyforge.org/mailman/listinfo/rubygems-developers