Code Monkey home page Code Monkey logo

Comments (6)

drbrain avatar drbrain commented on May 18, 2024

This has been fixed in a newer version of RubyGems.

from rubygems.

drbrain avatar drbrain commented on May 18, 2024

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.
[…]

from rubygems.

hirakuro avatar hirakuro commented on May 18, 2024

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.

from rubygems.

pdamer avatar pdamer commented on May 18, 2024

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.

from rubygems.

epitron avatar epitron commented on May 18, 2024

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!

from rubygems.

evanphx avatar evanphx commented on May 18, 2024

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

from rubygems.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.