Permalink
Browse files

Turn off ri and rdoc generation as defaults

  • Loading branch information...
1 parent dcfba4e commit 8c70f338d6a3917a7bcab9d9e3966af2cb156a65 @dhh committed Feb 25, 2011
@@ -19,8 +19,8 @@ class Gem::Commands::InstallCommand < Gem::Command
def initialize
defaults = Gem::DependencyInstaller::DEFAULT_OPTIONS.merge({
- :generate_rdoc => true,
- :generate_ri => true,
+ :generate_rdoc => false,
+ :generate_ri => false,
:format_executable => false,
:version => Gem::Requirement.default,
})
@@ -39,7 +39,7 @@ def arguments # :nodoc:
end
def defaults_str # :nodoc:
- "--both --version '#{Gem::Requirement.default}' --rdoc --ri --no-force\n" \
+ "--both --version '#{Gem::Requirement.default}' --no-rdoc --no-ri --no-force\n" \
"--install-dir #{Gem.dir}"
end
@@ -15,8 +15,8 @@ class Gem::Commands::UpdateCommand < Gem::Command
def initialize
super 'update',
'Update the named gems (or all installed gems) in the local repository',
- :generate_rdoc => true,
- :generate_ri => true,
+ :generate_rdoc => false,
+ :generate_ri => false,
:force => false
add_install_update_options
@@ -44,7 +44,7 @@ def arguments # :nodoc:
end
def defaults_str # :nodoc:
- "--rdoc --ri --no-force --install-dir #{Gem.dir}"
+ "--no-rdoc --no-ri --no-force --install-dir #{Gem.dir}"
end
def usage # :nodoc:
@@ -121,7 +121,7 @@ def add_install_update_options
# Default options for the gem install command.
def install_update_defaults_str
- '--rdoc --no-force --wrappers'
+ '--no-rdoc --no-force --wrappers'
end
end

2 comments on commit 8c70f33

Would --no-ri be needed in install_update_defaults_str too?

+1

Please sign in to comment.