Skip to content
Browse files

Merge pull request #11 from jarib/rubygems-deprecation-warnings

Fix deprecation warnings from Rubygems.
  • Loading branch information...
2 parents 329172b + dc00d36 commit 5288e0014011d6f7519c4231f65c8e5d78f48afb @jeremy jeremy committed Aug 10, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/rubigen/lookup.rb
View
3 lib/rubigen/lookup.rb
@@ -281,8 +281,7 @@ def ==(source)
private
def generator_full_paths
@generator_full_paths ||=
- Gem::source_index.inject({}) do |latest, name_gem|
- name, gem = name_gem
+ Gem::Specification.inject({}) do |latest, gem|
hem = latest[gem.name]
latest[gem.name] = gem if hem.nil? or gem.version > hem.version
latest

0 comments on commit 5288e00

Please sign in to comment.
Something went wrong with that request. Please try again.