# File lib/rubygems/gem_commands.rb, line 1408 def execute gemname = get_one_gem_name path = get_path(gemname, options[:version]) if path require 'fileutils' target_dir = File.basename(path).sub(/\.gem$/, '') FileUtils.mkdir_p target_dir Installer.new(path).unpack(File.expand_path(target_dir)) say "Unpacked gem: '#{target_dir}'" else alert_error "Gem '#{gemname}' not installed." end end