Skip to content

Commit

Permalink
Gem::Dependency can't handle Gem::Version as a requirement or type
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Jun 15, 2011
1 parent abdf759 commit 073094d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/bundler/resolver.rb
Expand Up @@ -356,7 +356,8 @@ def gems_size(dep)

def search(dep)
if base = @base[dep.name] and base.any?
d = Gem::Dependency.new(base.first.name, *[dep.requirement.as_list, base.first.version].flatten)
reqs = [dep.requirement.as_list, base.first.version.to_s].flatten.compact
d = Gem::Dependency.new(base.first.name, *reqs)
else
d = dep.dep
end
Expand Down

0 comments on commit 073094d

Please sign in to comment.