bdoc icon indicating copy to clipboard operation
bdoc copied to clipboard

Gem::SourceIndex throws deprecation warning

Open tvw opened this issue 14 years ago • 1 comments

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.

tvw avatar Oct 27 '11 19:10 tvw

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

rmanalan avatar Oct 28 '11 17:10 rmanalan