# File lib/isolate/entry.rb, line 77 def install old = Gem.sources.dup begin fire :installing, :installed do installer = Gem::DependencyInstaller.new :development => false, :generate_rdoc => false, :generate_ri => false, :install_dir => @sandbox.path Gem.sources += Array(options[:source]) if options[:source] Gem::Command.build_args = Array(options[:args]) if options[:args] installer.install @file || name, requirement end ensure Gem.sources = old Gem::Command.build_args = nil end end