Type:
Class
Constants:
DEFAULT_BACKTRACE : false
DEFAULT_BULK_THRESHOLD : 1000
DEFAULT_VERBOSITY : true
DEFAULT_UPDATE_SOURCES : true
OPERATING_SYSTEM_DEFAULTS : {}

For Ruby packagers to set configuration defaults. Set in rubygems/defaults/operating_system.rb

PLATFORM_DEFAULTS : {}

For Ruby implementers to set configuration defaults. Set in rubygems/defaults/#{RUBY_ENGINE}.rb

SYSTEM_WIDE_CONFIG_FILE : File.join system_config_path, 'gemrc'

Gem::ConfigFile RubyGems options and gem command options from gemrc.

gemrc is a YAML file that uses strings to match gem command arguments and symbols to match RubyGems options.

Gem command arguments use a String key that matches the command name and allow you to specify default arguments:

install: --no-rdoc --no-ri
update: --no-rdoc --no-ri

You can use gem: to set default arguments for all commands.

RubyGems options use symbol keys. Valid options are:

:backtrace

See backtrace

:sources

Sets Gem.sources

:verbose

See verbose

gemrc files may exist in various locations and are read and merged in the following order:

  • system wide (/etc/gemrc)

  • per user (~/.gemrc)

  • per environment (gemrc files listed in the GEMRC environment variable)

[]

[](key) Instance Public methods Return the configuration information for key

2015-04-08 13:51:03
credentials_path

credentials_path() Instance Public methods Location of RubyGems.org credentials

2015-04-08 14:18:14
rubygems_api_key

rubygems_api_key() Instance Public methods Returns the RubyGems.org API key

2015-04-08 14:45:12
backtrace

backtrace() Instance Public methods True if the backtrace option has been specified

2015-04-08 14:04:23
api_keys

api_keys() Instance Public methods

2015-04-08 13:58:10
really_verbose

really_verbose() Instance Public methods Really verbose mode gives you extra

2015-04-08 14:39:30