A Helm interface to query rubygems.org
- The helm package
- A rubygems.org account and the account's API key
For this helm interface to connect to rubygems.org, API requests must be
authorized using an API key. There are 3 ways to provide this key to
helm-rubygems-org.el
.
-
If you have chosen to store your API key in the
~.gem/credentials
YAML file,helm-rubygems-org.el
will use it as API key source. -
M-x customize-group
=>helm-rubygems-org
will provide a customization interface. -
Using
setq
, bind thehelm-rubygems-org-api-key
variable to either the value of the API key or the credentials YAML file where the API key is stored.
M-x helm-rubygems-org
and then type the name of the gem. After a few seconds,
a list of search results should appear in a helm interface.
Helm Actions
By default, hitting the return key on a item in the search results will populate
the kill ring with a string suitable for inclusion in a Gemfile
. (e.g.
gem 'guard-rackunit', '~> 1.0.0'
). Alternatively, hitting the tab key will
provide a list of helm actions. They are:
- "Copy Gemfile require" - copies the name and version of the gem to the kill ring.
- "View Description" - open a buffer with a description of the gem.
- "Browse source code project" - opens the gem's source code URL in a web browser (or if the URL doesn't exist, opens the gem's rubygems.org page).
- "Browse on rubygems.org" - opens the gem's rubygems.org page in a web browser.
Important Note
API connection's to rubygems.org are often slow. Helm (or emacs) does not
provide a mechanism to indicate to the user the progress of this connection.
Consequently, helm-rubygems-org.el
appears to be doing nothing, when it actually
is. Please be patient, and a list of gems is bound to appear.
This library follows semantic versioning conventions
The source is available on github.com
Please file bugs and feature requests here