forked from wallace/resque-lonely_job
-
Notifications
You must be signed in to change notification settings - Fork 2
/
resque-unique_at_runtime.gemspec
54 lines (42 loc) · 1.89 KB
/
resque-unique_at_runtime.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
48
49
50
51
52
53
54
# frozen_string_literal: true
require File.expand_path('lib/resque/unique_at_runtime/version', __dir__)
Gem::Specification.new do |spec|
spec.name = 'resque-unique_at_runtime'
spec.version = Resque::UniqueAtRuntime::VERSION
spec.authors = ['Peter H. Boling', 'Jonathan R. Wallace']
spec.email = ['[email protected]', '[email protected]']
spec.license = 'MIT'
spec.summary = 'A resque plugin that ensures job uniqueness at runtime.'
spec.homepage = 'http://github.com/pboling/resque-unique_at_runtime'
spec.required_ruby_version = '>= 2.3.0'
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
spec.require_paths = ['lib']
spec.add_runtime_dependency 'colorize', '>= 0.8'
spec.add_runtime_dependency 'resque', '>= 1.2'
spec.add_development_dependency 'byebug', '~> 11.1'
spec.add_development_dependency 'fakeredis', '~> 0.7'
spec.add_development_dependency 'pry', '~> 0.11'
spec.add_development_dependency 'pry-byebug', '~> 3.6'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '>= 3.0'
spec.add_development_dependency 'rspec-block_is_expected', '~> 1.0'
spec.add_development_dependency 'rspec-stubbed_env', '~> 1.0'
spec.add_development_dependency 'rubocop', '~> 1.18'
spec.add_development_dependency 'rubocop-rspec', '~> 2.4'
spec.add_development_dependency 'timecop'
spec.description = <<~desc
Ensures that for a given queue, only one worker is working on a job at any given time.
Example:
require 'resque/plugins/unique_at_runtime'
class StrictlySerialJob
include Resque::Plugins::UniqueAtRuntime
@queue = :serial_work
def self.perform
# only one at a time in this block, no parallelism allowed for this
# particular queue
end
end
desc
end