summaryrefslogtreecommitdiff
path: root/lib/rubygems/uninstaller.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/uninstaller.rb12
1 files changed, 6 insertions, 6 deletions
@@ -114,10 +114,10 @@ class Gem::Uninstaller
if list.empty?
return unless other_repo_specs.any?
- other_repos = other_repo_specs.map { |spec| spec.base_dir }.uniq
message = ["#{@gem} is not installed in GEM_HOME, try:"]
- message.concat other_repos.map { |repo|
"\tgem uninstall -i #{repo} #{@gem}"
}
@@ -126,7 +126,7 @@ class Gem::Uninstaller
remove_all list
elsif list.size > 1
- gem_names = list.map { |gem| gem.full_name }
gem_names << "All versions"
say
@@ -197,7 +197,7 @@ class Gem::Uninstaller
return if executables.empty?
- executables = executables.map { |exec| formatted_program_filename exec }
remove = if @force_executables.nil?
ask_yes_no("Remove executables:\n" +
@@ -232,7 +232,7 @@ class Gem::Uninstaller
# NOTE: removes uninstalled gems from +list+.
def remove_all(list)
- list.each { |spec| uninstall_gem spec }
end
##
@@ -339,7 +339,7 @@ class Gem::Uninstaller
end
spec.dependent_gems(@check_dev).each do |dep_spec, dep, satlist|
- unless siblings.any? { |s| s.satisfies_requirement? dep }
msg << "#{dep_spec.name}-#{dep_spec.version} depends on #{dep}"
end
end