mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
Import RubyGems r1601. [ruby-core:15381].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c12b289362
commit
5d613c83cc
26 changed files with 165 additions and 85 deletions
|
@ -18,18 +18,23 @@ module Gem
|
|||
options[:all] = value
|
||||
end
|
||||
|
||||
add_option('-i', '--[no-]ignore-dependencies',
|
||||
'Ignore dependency requirements while',
|
||||
'uninstalling') do |value, options|
|
||||
add_option('-I', '--[no-]ignore-dependencies',
|
||||
'Ignore dependency requirements while',
|
||||
'uninstalling') do |value, options|
|
||||
options[:ignore] = value
|
||||
end
|
||||
|
||||
add_option('-x', '--[no-]executables',
|
||||
add_option('-x', '--[no-]executables',
|
||||
'Uninstall applicable executables without',
|
||||
'confirmation') do |value, options|
|
||||
options[:executables] = value
|
||||
end
|
||||
|
||||
add_option('-i', '--install-dir DIR',
|
||||
'Directory to uninstall gem from') do |value, options|
|
||||
options[:install_dir] = File.expand_path(value)
|
||||
end
|
||||
|
||||
add_version_option
|
||||
add_platform_option
|
||||
end
|
||||
|
@ -39,7 +44,8 @@ module Gem
|
|||
end
|
||||
|
||||
def defaults_str # :nodoc:
|
||||
"--version '#{Gem::Requirement.default}' --no-force"
|
||||
"--version '#{Gem::Requirement.default}' --no-force " \
|
||||
"--install-dir #{Gem.dir}"
|
||||
end
|
||||
|
||||
def usage # :nodoc:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue