bdoc
bdoc copied to clipboard
Gem::SourceIndex throws deprecation warning
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.
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::SpecificationThe 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