summaryrefslogtreecommitdiff
path: root/lib/rubygems/resolver/activation_request.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/resolver/activation_request.rb24
1 files changed, 18 insertions, 6 deletions
@@ -1,4 +1,4 @@
-# frozen_string_literal: false
##
# Specifies a Specification object that should be activated. Also contains a
# dependency that was used to introduce this activation.
@@ -50,15 +50,27 @@ class Gem::Resolver::ActivationRequest
# Downloads a gem at +path+ and returns the file path.
def download path
- if @spec.respond_to? :source
source = @spec.source
else
source = Gem.sources.first
end
-
- Gem.ensure_gem_subdirectories path
-
- source.download full_spec, path
end
##