diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-20 01:33:19 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-20 01:33:19 +0000 |
commit | 3f15d35f83dc91e1e5af6d98e6f6fcd52abd1649 (patch) | |
tree | f677f8d0bff97ded1c0995f27158fb91d32966dd /lib/rubygems/uninstaller.rb | |
parent | 8552f7aa680e1f1a31d76dc9038d80248a445960 (diff) | |
download | ruby-3f15d35f83dc91e1e5af6d98e6f6fcd52abd1649.tar.gz |
* lib/rubygems: Update RubyGems to master 0886307. This commit
improves documentation and should bring ruby above 75% documented on
rubyci.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/uninstaller.rb')
-rw-r--r-- | lib/rubygems/uninstaller.rb | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/lib/rubygems/uninstaller.rb b/lib/rubygems/uninstaller.rb index eb150497ca..a1caacb10d 100644 --- a/lib/rubygems/uninstaller.rb +++ b/lib/rubygems/uninstaller.rb @@ -281,18 +281,30 @@ class Gem::Uninstaller full_path == spec.full_gem_path || original_path == spec.full_gem_path end - def dependencies_ok?(spec) + ## + # Returns true if it is OK to remove +spec+ or this is a forced + # uninstallation. + + def dependencies_ok? spec # :nodoc: return true if @force_ignore deplist = Gem::DependencyList.from_specs deplist.ok_to_remove?(spec.full_name, @check_dev) end - def abort_on_dependent? + ## + # Should the uninstallation abort if a dependency will go unsatisfied? + # + # See ::new. + + def abort_on_dependent? # :nodoc: @abort_on_dependent end - def ask_if_ok(spec) + ## + # Asks if it is OK to remove +spec+. Returns true if it is OK. + + def ask_if_ok spec # :nodoc: msg = [''] msg << 'You have requested to uninstall the gem:' msg << "\t#{spec.full_name}" @@ -313,7 +325,10 @@ class Gem::Uninstaller return ask_yes_no(msg.join("\n"), false) end - def formatted_program_filename(filename) + ## + # Returns the formatted version of the executable +filename+ + + def formatted_program_filename filename # :nodoc: # TODO perhaps the installer should leave a small manifest # of what it did for us to find rather than trying to recreate # it again. |