-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathsidekiq-debounce.gemspec
36 lines (33 loc) · 1.57 KB
/
sidekiq-debounce.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
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'sidekiq/debounce/version'
Gem::Specification.new do |spec|
spec.name = 'sidekiq-debounce'
spec.version = Sidekiq::Debounce::VERSION
spec.authors = ['Peter Lejeck']
spec.email = ['[email protected]']
spec.summary = 'A client-side middleware for debouncing Sidekiq jobs'
spec.description = <<-DESC
Sidekiq::Debounce provides a way to rate-limit creation of Sidekiq jobs. When
you create a job on a Worker with debounce enabled, Sidekiq::Debounce will
delay the job until the debounce period has elapsed with no additional debounce
calls. If you make another job with the same arguments before the specified
time has elapsed, the timer is reset and the entire period must pass again
before the job is executed.
DESC
spec.homepage = 'https://github.com/hummingbird-me/sidekiq-debounce'
spec.license = 'MIT'
spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^spec/})
spec.require_paths = ['lib']
spec.add_dependency 'sidekiq', '>= 2.17'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'bundler', '~> 1.6'
spec.add_development_dependency 'mock_redis'
spec.add_development_dependency 'mocha'
spec.add_development_dependency 'simplecov'
spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0.0'
spec.add_development_dependency 'minitest'
end