Skip to content
Browse files

delegate prefetch to @remote_set in Gem::Resolver::InstallerSet

APISet has a #prefetch method that can request multiple specs at once,
but it was never called, meaning each dependency required a separate
request to the Bundler API.
  • Loading branch information...
1 parent 26b3dd0 commit 234d1c6795aae6dd192ddd4e77ce613618835496 @charliesome charliesome committed Jan 4, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/rubygems/resolver/installer_set.rb
View
4 lib/rubygems/resolver/installer_set.rb
@@ -83,6 +83,10 @@ def find_all req
res
end
+ def prefetch(reqs)
+ @remote_set.prefetch(reqs)
+ end
+
def inspect # :nodoc:
always_install = @always_install.map { |s| s.full_name }

0 comments on commit 234d1c6

Please sign in to comment.
Something went wrong with that request. Please try again.