mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 10:03:59 +02:00
* lib/rubygems: update to RubyGems 2.0.6. the patch by drbrain.
[ruby-core:56633] [Backport #8787] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@42587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5ac6776b0f
commit
cbf9816635
11 changed files with 129 additions and 67 deletions
|
@ -21,7 +21,8 @@ class Gem::Commands::PristineCommand < Gem::Command
|
|||
end
|
||||
|
||||
add_option('--[no-]extensions',
|
||||
'Restore gems with extensions') do |value, options|
|
||||
'Restore gems with extensions',
|
||||
'in addition to regular gems') do |value, options|
|
||||
options[:extensions] = value
|
||||
end
|
||||
|
||||
|
@ -43,23 +44,23 @@ class Gem::Commands::PristineCommand < Gem::Command
|
|||
|
||||
def description # :nodoc:
|
||||
<<-EOF
|
||||
The pristine command compares the installed gems with the contents of the
|
||||
cached gem and restores any files that don't match the cached gem's copy.
|
||||
The pristine command compares an installed gem with the contents of its
|
||||
cached .gem file and restores any files that don't match the cached .gem's
|
||||
copy.
|
||||
|
||||
If you have made modifications to your installed gems, the pristine command
|
||||
will revert them. After all the gem's files have been checked all bin stubs
|
||||
for the gem are regenerated.
|
||||
If you have made modifications to an installed gem, the pristine command
|
||||
will revert them. All extensions are rebuilt and all bin stubs for the gem
|
||||
are regenerated after checking for modifications.
|
||||
|
||||
If the cached gem cannot be found, you will need to use `gem install` to
|
||||
revert the gem.
|
||||
If the cached gem cannot be found it will be downloaded.
|
||||
|
||||
If --no-extensions is provided pristine will not attempt to restore gems
|
||||
with extensions.
|
||||
If --no-extensions is provided pristine will not attempt to restore a gem
|
||||
with an extension.
|
||||
EOF
|
||||
end
|
||||
|
||||
def usage # :nodoc:
|
||||
"#{program_name} [args]"
|
||||
"#{program_name} [GEMNAME ...]"
|
||||
end
|
||||
|
||||
def execute
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue