As of RubyGems 1.3.2, RubyGems will load plugins installed in gems or $LOAD_PATH. Plugins must be named ‘rubygems_plugin’ (.rb, .so, etc) and placed at the root of your gem’s #require_path. Plugins are discovered via Gem::find_files then loaded. Take care when implementing a plugin as your plugin file may be loaded multiple times if multiple versions of your gem are installed.
The following list of RubyGems plugins is probably not exhaustive. If you know of plugins that we missed, feel free to update this page.
Adds four commands:
gem editopens a gem in your editor
gem openopens a gem by name in your editor
gem cloneclones a gem from GitHub
gem browseopens a gem’s homepage in your browser
gem ctags command to invoke the Exuberant Ctags indexer on already-installed gems, and then automatically invokes it on gems as they are installed.
gem info command with fuzzy matching on name and version. Designed for scripting use.
gem init to create a barebones gem.
gem man command lets you view a gem’s man page.
Tries to install system dependencies needed to install your gems with binary extensions
gem install command. This currently works only for Fedora, but
hopefully will be extended.
gem orphan command that finds and lists gems on which no other gems are depending.
gem patch command, which enables you to apply patches directly on
Supports both RubyGems 1.8 and RubyGems 2.0.
Adds six commands:
gem open- opens a gem in your default editor
gem cd- changes your working directory to the gem’s source root
gem readme- locates and displays a gem’s readme file
gem history- locates and display’s a gem’s changelog
gem doc- Browse a gem’s documentation in your default browser
gem visit- Open a gem’s homepage in your default browser
gem graph command to output a gem dependency graph in graphviz’s dot format.
gem maven to install any Maven-published Java library as though it were a gem.
Adds two commands:
gem openopens a gem in your default editor
gem readopens a gem’s rdoc in your default browser
Applies a whitelist to
gem push to prevent accidentally pushing private gems to the public RubyGems repository.
rbenv rehash after installing or uninstalling gems.
gem desc to describe a gem by name.
Adds commands and flags to allow OpenPGP signing of gems.
gem sign foo.gemto sign a gem.
gem verify foo.gem --trustto verify a gem.
gem build foo.gemspec --signto sign at build time.
gem install foo --verify --trustto verify on install.
Manages command-line gem tools and dependencies with a
gem sandbox command. This lets you install things like flay and rdoc outside of the global rubygems repository.
gem snapshot to create exports of all your current gems into a single file that you can import later.
rubygems-tasks provides agnostic and unobtrusive Rake tasks for building, installing and releasing Ruby Gems.