Gem::ConfigFile
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:
|
See #backtrace | |
:benchmark |
See #benchmark |
:sources |
Sets Gem::sources |
:verbose |
See #verbose |
Constants
CSIDL_COMMON_APPDATA = 0x0023
DEFAULT_BACKTRACE = false
DEFAULT_BENCHMARK = false
DEFAULT_BULK_THRESHOLD = 1000
DEFAULT_UPDATE_SOURCES = true
DEFAULT_VERBOSITY = true
OPERATING_SYSTEM_DEFAULTS = {}
PLATFORM_DEFAULTS = {}
SHGetFolderPath = Win32API.new 'shell32', 'SHGetFolderPath', 'PLPLP',\n'L', :stdcall
SYSTEM_WIDE_CONFIG_FILE = File.join system_config_path, 'gemrc'
Attributes
| [R] | api_keys |
| [R] | args |
| [W] | backtrace |
| [RW] | benchmark |
| [RW] | bulk_threshold |
| [R] | hash |
| [RW] | home |
| [RW] | path |
| [R] | rubygems_api_key |
| [RW] | update_sources |
| [RW] | verbose |
Files
- lib/rubygems/config_file.rb