Issue #7160 has been reported by Quintus (Marvin Gülker).

----------------------------------------
Bug #7160: "gem rdoc" command outputs a wealth of warnings
https://bugs.ruby-lang.org/issues/7160

Author: Quintus (Marvin Gülker)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]


=begin
The (({gem rdoc})) command outputs an insane number of warnings:

 % sudo gem rdoc --overwrite sinatra
 NOTE: Gem::SourceIndex.from_installed_gems is deprecated with no replacement. It will be removed on or after 2011-10-01.
 Gem::SourceIndex.from_installed_gems called from /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/commands/rdoc_command.rb:64.
 NOTE: Gem::SourceIndex.installed_spec_directories is deprecated, use Specification.dirs. It will be removed on or after 2011-11-01.
 Gem::SourceIndex.installed_spec_directories called from /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:47.
 NOTE: Gem::SourceIndex.from_gems_in is deprecated with no replacement. It will be removed on or after 2011-10-01.
 Gem::SourceIndex.from_gems_in called from /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:47.
 NOTE: Gem::SourceIndex#initialize is deprecated with no replacement. It will be removed on or after 2011-11-01.
 Gem::SourceIndex#initialize called from /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:67.
 NOTE: Gem::SourceIndex#spec_dirs= is deprecated, use Specification.dirs=. It will be removed on or after 2011-11-01.
 Gem::SourceIndex#spec_dirs= called from /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:94.
 NOTE: Gem::SourceIndex#refresh! is deprecated with no replacement. It will be removed on or after 2011-11-01.
 Gem::SourceIndex#refresh! called from /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:95.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:322.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 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 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:127.
 NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be removed on or after 2011-11-01.
 Gem::SourceIndex#search called from /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/commands/rdoc_command.rb:64.
 Installing ri documentation for sinatra-1.3.3...
 Installing RDoc documentation for sinatra-1.3.3...
 
Although these are only warnings, they should probably be fixed, because according to the message the used API is obsolete since nearly a year now.

* RubyGems version: 1.8.24
* OS: Arch Linux
* Gem env:

 % gem env
 RubyGems Environment:
 - RUBYGEMS VERSION: 1.8.24
 - RUBY VERSION: 1.9.3 (2012-10-12 patchlevel 286) [x86_64-linux]
 - INSTALLATION DIRECTORY: /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1
 - RUBY EXECUTABLE: /opt/rubies/ruby-1.9.3-p286/bin/ruby
 - EXECUTABLE DIRECTORY: /opt/rubies/ruby-1.9.3-p286/bin
 - RUBYGEMS PLATFORMS:
 - ruby
 - x86_64-linux
 - GEM PATHS:
 - /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1
 - /home/quintus/.gem/ruby/1.9.1
 - GEM CONFIGURATION:
 - :update_sources => true
 - :verbose => true
 - :benchmark => false
 - :backtrace => false
 - :bulk_threshold => 1000
 - "install" => "--format-executable"
 - "update" => "--format-executable"
 - REMOTE SOURCES:
 - http://rubygems.org/

Vale,
Marvin
=end



-- 
http://bugs.ruby-lang.org/