summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-08-16 18:41:15 -0700
committerAndre Arko <andre@arko.net>2014-08-16 18:41:15 -0700
commite8f02a748d39c762362af6f5a18a1b0ad85faa30 (patch)
tree8d28ffd0058e68b9d8d57ac9aeebf4e3d1de108d
parent7ef391db76814509bcbae5f24dd6bb11da805f33 (diff)
downloadbundler-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.
-rw-r--r--lib/bundler/definition.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index 466a39ccdd..08853940eb 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