drnic/rubigen — pull request #11 by jarib (2012-01-25 18:43:13+00:00)
Title: Fix deprecation warnings from Rubygems.

The following warnings exist in the current release:

```
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /Users/fijabakk/src/git/rubigen/lib/rubigen/lookup.rb:284.
NOTE: Gem::SourceIndex#each is deprecated with no replacement. It will be removed on or after 2011-11-01.

I've replaced ```Gem.source_index#each``` with ```Gem::Specification.each```. I've only tested it against Rubygems 1.8.15, but the removal dates that relying on it being there should be fine.