diff options
author | Andre Arko <andre@arko.net> | 2014-08-16 18:41:15 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-08-16 18:41:15 -0700 |
commit | e8f02a748d39c762362af6f5a18a1b0ad85faa30 (patch) | |
tree | 8d28ffd0058e68b9d8d57ac9aeebf4e3d1de108d /lib/bundler | |
parent | 7ef391db76814509bcbae5f24dd6bb11da805f33 (diff) | |
download | bundler-e8f02a748d39c762362af6f5a18a1b0ad85faa30.tar.gz |
restore 1.8.7-compatibility
I will be very excited when we can drop 1.8 and 1.9 and use all the new
fancy Ruby stuffs.
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/definition.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 466a39cc..08853940 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -598,10 +598,12 @@ module Bundler # Record the specs available in each gem's source, so that those # specs will be available later when the resolver knows where to # look for that gemspec (or its dependencies) - dependencies.each_with_object({}) do |dep, source_requirements| + source_requirements = {} + dependencies.each do |dep| next unless dep.source source_requirements[dep.name] = dep.source.specs end + source_requirements end end |