Updating rubygems error

The Ruby Gems environment can be controlled through command line arguments, gemrc files, environment variables and built-in defaults.Command line argument defaults and some Ruby Gems defaults can be set in a ~/.gemrc file for individual users and a gemrc in the SYSTEM CONFIGURATION DIRECTORY for all users.

updating rubygems error-40

If a gem is installed elsewhere in GEM_PATH the cleanup command won’t delete it.

If no gems are named all gems in GEM_HOME are cleaned.

These files are YAML files with the following YAML keys: :sources: A YAML array of remote gem repositories to install gems from :verbose: Verbosity of the gem command.

false, true, and :really are the levels :update_sources: Enable/disable automatic updating of repository metadata :backtrace: Print backtrace when Ruby Gems encounters an error :gempath: The paths in which to look for gems :disable_default_gem_server: Force specification of gem server host on push Ruby Gems’ default local repository can be overridden with the GEM_PATH and GEM_HOME environment variables.

The dependency list can be displayed in a format suitable for piping for use with other commands.

Display information about the Ruby Gems environment The environment command lets you query rubygems for its configuration for use in shell scripts or as a debugging aid.

GEM_HOME sets the default repository to install into.

GEM_PATH allows multiple local repositories to be searched for gems.

Your signing certificate and private key are typically stored in ~/.gem/gem-public_and ~/.gem/gem-private_respectively.

To build a certificate for signing gems: The cleanup command removes old versions of gems from GEM_HOME that are not required to meet a dependency.

If you have no network connection or are behind a very restrictive firewall you may find it difficult to install gems.

Tags: , ,