-
Notifications
You must be signed in to change notification settings - Fork 0
/
resque-loner.gemspec
47 lines (37 loc) · 1.22 KB
/
resque-loner.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
require 'resque-loner/version'
Gem::Specification.new do |s|
s.name = 'resque-loner'
s.version = Resque::Plugins::Loner::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['Jannis Hermanns']
s.email = ['[email protected]']
s.homepage = 'http://github.com/jayniz/resque-loner'
s.summary = 'Adds unique jobs to resque'
s.has_rdoc = false
s.rubyforge_project = 'resque-loner'
s.add_dependency 'resque', '~>1.0'
{
'bundler' => '~> 1.0.0',
'rake' => '~> 0.8.7',
'rack-test' => '~> 0.5.7',
'rspec' => '~> 2.5.0',
}.each do |lib, version|
s.add_development_dependency lib, version
end
s.files = Dir.glob("{lib}/**/*") + %w(README.markdown)
s.require_path = 'lib'
s.description = <<desc
Makes sure that for special jobs, there can be only one job with the same workload in one queue.
Example:
class CacheSweeper
include Resque::Plugins::UniqueJob
@queue = :cache_sweeps
def self.perform(article_id)
# Cache Me If You Can...
end
end
desc
end