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::SourceIndex throws deprecation warning #9

Open
tvw opened this issue Oct 27, 2011 · 1 comment
Open

Gem::SourceIndex throws deprecation warning #9

tvw opened this issue Oct 27, 2011 · 1 comment

Comments

@tvw
Copy link
Contributor

tvw commented Oct 27, 2011

Line 28:

  installed_gems = Gem::SourceIndex.from_installed_gems.gems.map{|k,v|v}

gives a rubygems deprecation warning with rubygems 1.8.10

As far as I found out, this helps:

  installed_gems = Gem::Specification

The best would be to test against the rubygems version and use either on or the other.

@rmanalan
Copy link
Owner

Thanks... I'll work on that this weekend.

Rich

On Thu, Oct 27, 2011 at 12:59 PM, Thomas Volkmar Worm <
[email protected]>wrote:

Line 28:

 installed_gems = Gem::SourceIndex.from_installed_gems.gems.map{|k,v|v}

gives a rubygems deprecation warning with rubygems 1.8.10

As far as I found out, this helps:

 installed_gems = Gem::Specification

The best would be to test against the rubygems version and use either on or
the other.

Reply to this email directly or view it on GitHub:
https://github.com/manalang/bdoc/issues/9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants