# File lib/bundler/gem_helper.rb, line 52 def install_gem built_gem_path = build_gem out, code = sh_with_code("gem install #{built_gem_path}") raise "Couldn't install gem, run `gem install #{built_gem_path}' for more detailed output" unless out[/Successfully installed/] Bundler.ui.confirm "#{name} (#{version}) installed" end