Method: Bundler::GemInstaller#install_from_spec

Defined in:
lib/bundler/installer/gem_installer.rb

#install_from_specObject



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/bundler/installer/gem_installer.rb', line 15

def install_from_spec
  post_install_message = install
  Bundler.ui.debug "#{worker}:  #{spec.name} (#{spec.version}) from #{spec.loaded_from}"
  generate_executable_stubs
  [true, post_install_message]
rescue Bundler::InstallHookError, Bundler::SecurityError, Bundler::APIResponseMismatchError, Bundler::InsecureInstallPathError
  raise
rescue Errno::ENOSPC
  [false, out_of_space_message]
rescue Bundler::BundlerError, Gem::InstallError => e
  [false, specific_failure_message(e)]
end