method
check_that_user_bin_dir_is_in_path
v2_1_10 -
Show latest stable
- Class:
Gem::Installer
check_that_user_bin_dir_is_in_path()public
DOC: Missing docs or :nodoc:.
# File lib/rubygems/installer.rb, line 598
def check_that_user_bin_dir_is_in_path
user_bin_dir = @bin_dir || Gem.bindir(gem_home)
user_bin_dir = user_bin_dir.gsub(File::SEPARATOR, File::ALT_SEPARATOR) if
File::ALT_SEPARATOR
path = ENV['PATH']
if Gem.win_platform? then
path = path.downcase
user_bin_dir = user_bin_dir.downcase
end
unless path.split(File::PATH_SEPARATOR).include? user_bin_dir then
unless self.class.path_warning then
alert_warning "You don't have #{user_bin_dir} in your PATH,\n\t gem executables will not run."
self.class.path_warning = true
end
end
end Related methods
- Instance methods
- app_script_text
- build_extensions
- check_executable_overwrite
- check_that_user_bin_dir_is_in_path
- default_spec_file
- dir
- ensure_dependencies_met
- ensure_dependency
- ensure_loadable_spec
- ensure_required_ruby_version_met
- ensure_required_rubygems_version_met
- extension_build_error
- extract_bin
- extract_files
- formatted_program_filename
- gem_dir
- generate_bin
- generate_bin_script
- generate_bin_symlink
- generate_windows_script
- install
- installation_satisfies_dependency?
- installed_specs
- pre_install_checks
- process_options
- run_post_build_hooks
- run_post_install_hooks
- run_pre_install_hooks
- shebang
- spec
- spec_file
- unpack
- verify_gem_home
- windows_stub_script
- write_build_info_file
- write_cache_file
- write_default_spec
- write_spec
- Class methods
- exec_format
- new