Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of git@github.com:rails/rails

  • Loading branch information...
commit d85a7aecbb74bcabff9c13eed980e58db62611c7 2 parents 448e7e7 + 326036d
@dhh dhh authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  railties/lib/rails_generator/lookup.rb
View
3  railties/lib/rails_generator/lookup.rb
@@ -208,7 +208,8 @@ def initialize
class GemGeneratorSource < AbstractGemSource
# Yield latest versions of generator gems.
def each
- Gem::cache.search(/_generator$/).inject({}) { |latest, gem|
+ dependency = Gem::Dependency.new(/_generator$/, Gem::Requirement.default)
+ Gem::cache.search(dependency).inject({}) { |latest, gem|
hem = latest[gem.name]
latest[gem.name] = gem if hem.nil? or gem.version > hem.version
latest
Please sign in to comment.
Something went wrong with that request. Please try again.