Skip to content

Instantly share code, notes, and snippets.

@jch
Created November 1, 2011 19:10
Show Gist options
  • Star 44 You must be signed in to star a gist
  • Fork 20 You must be signed in to fork a gist
  • Save jch/1331576 to your computer and use it in GitHub Desktop.
Save jch/1331576 to your computer and use it in GitHub Desktop.
gemrc example
# http://docs.rubygems.org/read/chapter/11
---
gem: --no-ri --no-rdoc
benchmark: false
verbose: true
update_sources: true
sources:
- http://gems.rubyforge.org/
- http://rubygems.org/
backtrace: true
bulk_threshold: 1000
# HTTP Proxy options
# http-proxy: http://example.com:80
@giiska
Copy link

giiska commented Jul 16, 2014

The docs link seems not work now, this one is ok: http://guides.rubygems.org/command-reference/#gem-environment

@mlutescu
Copy link

http**_**proxy: not http-proxy: (underscore, not dash)

@alecalciatore9
Copy link

Is beatificazione app 5 star

@czj
Copy link

czj commented Jun 24, 2016

---
# The paths in which to look for gems
# :gempath:

# Force specification of gem server host on push
# disable_default_gem_server:

# A YAML array of remote gem repositories to install gems from
# :sources:

# Self explanatory :-)
benchmark: false

# Verbosity of the gem command. false, true, and :really are the levels
verbose: false

# Enable/disable automatic updating of repository metadata
update_sources: true

# Print backtrace when RubyGems encounters an error
backtrace: true

# <gem_command>: A string containing arguments for the specified gem command
# -N, --no-document - Disable documentation generation
# --[no-]document [TYPES] - Generate documentation for installed gems List the
# documentation types you wish to generate. For example: rdoc,ri
# --[no-]suggestions - Suggest alternates when gems are not found
gem: --no-ri --no-rdoc --no-document --suggestions

Some more explanations if you need it

@belgoros
Copy link

belgoros commented Feb 7, 2017

As explained in Rubygems CLI reference, some options are deprecated:

Deprecated Options:

-​-[no-]rdoc - Generate RDoc for installed gems Use -​-document instead
-​-[no-]ri - Generate ri data for installed gems. Use -​-document instead
-u, -​-[no-]update-sources - Update local source cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment