diff options
author | Andre Arko <andre@arko.net> | 2011-06-14 22:00:58 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-06-14 22:02:59 -0700 |
commit | 073094d6e68271907205721f2a2f0e1844abc667 (patch) | |
tree | d2854314816136f21d0ef8c054d980c32f81c024 /lib | |
parent | abdf75906a2c8143bae399dcd9d74b4723b2a6bd (diff) | |
download | bundler-073094d6e68271907205721f2a2f0e1844abc667.tar.gz |
Gem::Dependency can't handle Gem::Version as a requirement or type
closes #1237
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/resolver.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/resolver.rb b/lib/bundler/resolver.rb index 4948357c..76d17803 100644 --- a/lib/bundler/resolver.rb +++ b/lib/bundler/resolver.rb @@ -356,7 +356,8 @@ module Bundler 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 |