- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125 (0)
- 1_9_3_392 (-29)
- 2_1_10 (38)
- 2_2_9 (0)
- 2_4_6 (0)
- 2_5_5 (0)
- 2_6_3 (3)
- What's this?
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
DEFAULT_BACKTRACE = false
DEFAULT_BENCHMARK = false
DEFAULT_BULK_THRESHOLD = 1000
DEFAULT_VERBOSITY = true
DEFAULT_UPDATE_SOURCES = true
OPERATING_SYSTEM_DEFAULTS = {}
PLATFORM_DEFAULTS = {}
CSIDL_COMMON_APPDATA = 0x0023
SHGetFolderPath = Win32API.new 'shell32', 'SHGetFolderPath', 'PLPLP', 'L', :stdcall
SYSTEM_WIDE_CONFIG_FILE = File.join system_config_path, 'gemrc'
Attributes
[R] | args |
List of arguments supplied to the config file object. |
[RW] | path |
Where to look for gems (deprecated) |
[RW] | home |
Where to install gems (deprecated) |
[W] | backtrace |
True if we print backtraces on errors. |
[RW] | benchmark |
True if we are benchmarking this run. |
[RW] | bulk_threshold |
Bulk threshold value. If the number of missing gems are above this threshold value, then a bulk download technique is used. (deprecated) |
[RW] | verbose |
Verbose level of output:
|
[RW] | update_sources |
True if we want to update the SourceInfoCache every time, false otherwise |
[R] | rubygems_api_key |
API key for RubyGems.org |
[R] | api_keys |
Hash of RubyGems.org and alternate API keys |
[R] | hash |