diff options
-rw-r--r-- | lib/rubygems/commands/fetch_command.rb | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -44,17 +44,15 @@ class Gem::Commands::FetchCommand < Gem::Command spec, source_uri = specs_and_sources.last - gem_file = "#{spec.full_name}.gem" - - gem_path = File.join source_uri, 'gems', gem_file - - gem = Gem::RemoteFetcher.fetcher.fetch_path gem_path - - File.open gem_file, 'wb' do |fp| - fp.write gem end - say "Downloaded #{gem_file}" end end |