自从 RubyGems 1.3.2开始, RubyGems 会加载安装在gem或者 $LOAD_PATH.中的插件。插件必须命名为 ‘rubygems_plugin’ (.rb, .so, etc) 然后放在你的gem的 #require_path。插件通过 Gem::find_files 查找然后加载。 注意:当你执行你的插件的时候,如果你的gem安装了多个版本,那么你的插件文件加载多次。
以下RubyGems可能并不详尽,如果你发现了我们缺失的插件,免费更新这个页面。
- gem-browse
- gem-ctags
- gem_info
- gem-init
- gem-man
- gem-nice-install
- gem-orphan
- gem-patch
- gem-toolbox
- graph
- maven-gem
- open-gem
- PushSafety
- rbenv-rehash
- rubygems-desc
- rubygems-openpgp
- rubygems-sandbox
- rubygems_snapshot
- rubygems-tasks
================================================================
## gem-browse
https://github.com/tpope/gem-browse
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
https://github.com/tpope/gem-ctags
Adds a gem ctags command to invoke the Exuberant Ctags indexer on already-installed gems, and then automatically invokes it on gems as they are installed.
https://github.com/oggy/gem_info
Adds a gem info command with fuzzy matching on name and version. Designed for scripting use.
https://github.com/mwhuss/gem-init
Adds gem init to create a barebones gem.
https://github.com/defunkt/gem-man
The gem man command lets you view a gem’s man page.
https://github.com/voxik/gem-nice-install
Tries to install system dependencies needed to install your gems with binary extensions using standard gem installcommand. This currently works only for Fedora, but hopefully will be extended.
https://github.com/sakuro/gem-orphan
Adds a gem orphan command that finds and lists gems on which no other gems are depending.
https://github.com/strzibny/gem-patch
Adds gem patch command, which enables you to apply patches directly on .gem files. Supports both RubyGems 1.8 and RubyGems 2.0.
https://github.com/gudleik/gem-toolbox
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
https://github.com/seattlerb/graph
Adds a gem graph command to output a gem dependency graph in graphviz’s dot format.
https://github.com/jruby/maven_gem
Adds gem maven to install any Maven-published Java library as though it were a gem.
https://github.com/adamsanderson/open_gem
Adds two commands:
-
gem openopens a gem in your default editor -
gem readopens a gem’s rdoc in your default browser
https://github.com/jdleesmiller/push_safety
Applies a whitelist to gem push to prevent accidentally pushing private gems to the public RubyGems repository.
https://github.com/scoz/rbenv-rehash
Automatically runs rbenv rehash after installing or uninstalling gems.
https://github.com/chad/rubygems-desc
Adds gem desc to describe a gem by name.
https://github.com/grant-olson/rubygems-openpgp
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.
https://github.com/seattlerb/rubygems-sandbox
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.
https://github.com/rogerleite/rubygems_snapshot
Adds gem snapshot to create exports of all your current gems into a single file that you can import later.
https://github.com/postmodern/rubygems-tasks
rubygems-tasks provides agnostic and unobtrusive Rake tasks for building, installing and releasing Ruby Gems.
本文概述了RubyGems插件及其相关工具的功能与用途,包括浏览、编辑、信息查看、初始化、安装优化、孤儿gem管理、补丁应用等。详细介绍了每个插件的具体作用和使用方法,旨在帮助开发者更高效地管理和利用RubyGems生态系统。
2449

被折叠的 条评论
为什么被折叠?



