Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"gem rdoc" uses some deprecated methods #104

Closed
rdp opened this issue Jun 13, 2011 · 6 comments
Closed

"gem rdoc" uses some deprecated methods #104

rdp opened this issue Jun 13, 2011 · 6 comments

Comments

@rdp
Copy link

rdp commented Jun 13, 2011

with 1.8.5:

$ gem rdoc flickraw
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 C:/installs/Ruby187/lib/ruby/site_ruby/1.8/rubygems/commands/rdoc_command.rb:64.
... (lots of them).

@ghost ghost assigned drbrain Jun 15, 2011
@drbrain
Copy link
Member

drbrain commented Sep 2, 2011

This has been fixed in a newer version of RubyGems.

@drbrain drbrain closed this as completed Sep 2, 2011
@drbrain drbrain reopened this Sep 2, 2011
@drbrain
Copy link
Member

drbrain commented Sep 2, 2011

Actually, I spoke too soon, looks like --all still uses Gem::SourceIndex:


$ gem19 rdoc --all --overwrite
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 /usr/local/lib/ruby/1.9.1/rubygems/commands/rdoc_command.rb:58.
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 /usr/local/lib/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 /usr/local/lib/ruby/1.9.1/rubygems/source_index.rb:47.
[…]

@hirakuro
Copy link

hirakuro commented Nov 3, 2011

Hello.
I meet this problem with 1.8.10.

The "rdoc_command.rb" in master branch does not use Gem::SourceIndex.
(see https://github.com/rubygems/rubygems/blob/master/lib/rubygems/commands/rdoc_command.rb )

However, this change is not applied to the "rdoc_command.rb" in 1.8 branch!
(see https://github.com/rubygems/rubygems/blob/1.8/lib/rubygems/commands/rdoc_command.rb )

I think that this is a reason of the problem.

@pdamer
Copy link

pdamer commented May 23, 2012

I still get this error with 1.8.24:

$ gem --version
1.8.24
$ gem rdoc rails
NOTE: Gem::SourceIndex.from_installed_gems is deprecated with no replacement. It will be removed on or after 2011-10-01.

@epitron
Copy link

epitron commented Jun 4, 2012

Another one in 1.8.24:

$ gem rdoc --ri nokogiri
Gem::SourceIndex#add_spec called from /home/epi/.rvm/rubies/ruby-1.9.3-p194/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.

A gem divided against itself cannot stand!

@evanphx
Copy link
Member

evanphx commented Oct 7, 2012

This is fixed in master, which is where we're spending out time right now. I'm going to ahead and close this.

@evanphx evanphx closed this as completed Oct 7, 2012
nobu pushed a commit to nobu/rubygems that referenced this issue Jan 12, 2014
Raise an ArgumentError on an invalid UTF-8 char
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants