docs/PLUGINS.md
Resque encourages plugin development. For a list of available plugins, please see https://github.com/resque/resque/wiki/plugins.
The docs/HOOKS.md file included with Resque documents the available
hooks you can use to add or change Resque functionality. This document
describes best practice for plugins themselves.
Plugins should declare the major.minor version of Resque they are known to work with explicitly in their README.
For example, if your plugin depends on features in Resque 2.1, please list "Depends on Resque 2.1" very prominently near the beginning of your README.
Because Resque uses Semantic Versioning, you can safely make the following assumptions:
All plugins should live under the Resque::Plugins module to avoid
clashing with first class Resque constants or other Ruby libraries.
Good:
Bad:
Gem names should be in the format of resque-FEATURE, where FEATURE
succinctly describes the feature your plugin adds to Resque.
Good:
Bad:
Job hook names should be namespaced to work properly.
Good:
Bad:
Plugins should test compliance to this document using the
Resque::Plugin.lint method.
For example:
assert_nothing_raised do
Resque::Plugin.lint(Resque::Plugins::Lock)
end