Skip to content
On this page
class · Ruby 4.0

Gem::ConfigFile

< Object include Gem::UserInteraction 22 instance methods 4 class methods

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

:concurrent_downloads

See concurrent_downloads

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)

Class methods 4

Instance methods 22

Constants
No documentation available
No documentation available
No documentation available
No documentation available

TODO: Use false as default value for this option in RubyGems 4.0

No documentation available
No documentation available
No documentation available

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

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

No documentation available
Attributes
Read

List of arguments supplied to the config file object.

Write

True if we print backtraces on errors.

Read & Write

Bulk threshold value. If the number of missing gems are above this threshold value, then a bulk download technique is used. (deprecated)

Expiration length to sign a certificate

Read & Write

Number of gem downloads that should be performed concurrently.

True if we want to force specification of gem server when pushing a gem

Read
No documentation available
Read & Write

Where to install gems (deprecated)

Install extensions into lib as well as into the extension directory.

Read & Write

Experimental ==

Fallback to IPv4 when IPv6 is not reachable or slow (default: false)

Read & Write

Where to look for gems (deprecated)

Read & Write

sources to look for gems

Read & Write

Path name of directory or file of openssl CA certificate, used for remote https connection

Path name of directory or file of openssl client certificate, used for remote https connection with client authentication

openssl verify mode value, used for remote https connection

Read & Write

True if we want to update the SourceInfoCache every time, false otherwise

Read & Write

Verbose level of output:

  • false – No output

  • true – Normal output

  • :loud – Extra output